有没有一种可能的方法来设置效果或过渡,以在设置剖切面时平滑地看到?
// Select floor 2
const CutPlaneSetName = 'Autodesk.AEC.FloorSelector';
let floorIndex = 2;
floorExtension.floorSelector.selectFloor(floorIndex);
// Capture roof floor 2
const cuts2 = myviewer.impl.getCutPlaneSet(CutPlaneSetName);
// Select floor 1
floorIndex = 1;
floorExtension.floorSelector.selectFloor(floorIndex);
// Capture roof floor 1
const cuts1 = myviewer.impl.getCutPlaneSet(CutPlaneSetName);
// Restore roof floor 2
const planes = [ cuts1[0], cuts2[1] ];
myviewer.impl.setCutPlaneSet(CutPlaneSetName, planes);发布于 2021-07-09 15:27:55
您最终可以使用FloorRenderMode枚举激活一些动画,但这是在使用UI时。
const FloorRenderMode = {
// mouse is hovering over a floor button
Hovering: 0,
// new floor has been selected and anim is running
Transition: 1,
// default rendering
Off: 2
};您可能希望在选择楼层时使用过渡效果。
floorExtension.floorSelector.selectFloor(floorIndex, true);https://stackoverflow.com/questions/68246027
复制相似问题