在与我们的工程人员核实后,我们终于设法使模型边缘显示在我的 iPad 上,最终结果请参见下面的快照。
要做到这一点,请尝试使用这两个选项加载您的模型,createWireframe: true然后isAEC: true,砰!台式机和移动设备之间的外观相似。这是给你的代码片段,请试一试!
const loadOptions = {
createWireframe: true,
isAEC: true
};
const onGeometryLoaded = () => {
viewer.removeEventListener(
Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
onGeometryLoaded
);
// just in case the edge display mode is off, then we set it back to true
viewer.setDisplayEdges( true );
};
viewer.addEventListener(
Autodesk.Viewing.GEOMETRY_LOADED_EVENT,
onGeometryLoaded
);
viewer.loadModel( svf, loadOptions, onSuccessCallback, onErrorCallback );
最终结果:
