I’ve checked this documentation about the model. It says, using “debugWireframe” properties we can see the model in wire-frame mode.
I’ve tried that api in Sandcastle, but it still shown the complete model.
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
infoBox : false,
selectionIndicator : false
});
function createModel(url, height) {
viewer.entities.removeAll();
var position = Cesium.Cartesian3.fromDegrees(-123.0744619, 44.0503706, height);
var heading = Cesium.Math.toRadians(135);
var pitch = 0;
var roll = 0;
var orientation = Cesium.Transforms.headingPitchRollQuaternion(position, heading, pitch, roll);
var entity = viewer.entities.add({
name : url,
position : position,
orientation : orientation,
model : {
uri : url,
minimumPixelSize : 128,
debugWireframe: true
}
});
viewer.trackedEntity = entity;
}
createModel(’…/…/SampleData/models/CesiumAir/Cesium_Air.glb’, 5000.0);
``
Is there anything wrong with the code. Am I implemented in the wrong place?
Please advice.