I encountered two issues while using the cutting manager.
1: I found that there is a delay in cutting the cover during the dragging process. The effect I want is to display the cover continuously while dragging, instead of displaying the empty shell first and then the cover, which may cause flickering
2. Partial format drawings are cut without covers and display empty shells in the formats of iges, igs, vda, obj,rvt、rfa、skp、ifc、gltf
3: I want to display the cutting line when cutting, but I don’t know how to achieve it, similar to the following effect
It’s possible to set the delay in the capping geometry creation using the function setCappingDelay. However, there will still be some “flickering” due to the necessary processing time to create and render the capping geometry.
Additionally, capping geometry is limited to models that are manifold. To check, you can call MeshData.isManifold. Below is a code snippet you can paste in the dev console to use the aforementioned function. You may need to change the hwv
for the Web Viewer alias to fit your environment. To run the code, just select a node:
hwv.setCallbacks({
selectionArray: async function (selections) {
if (selections.length > 0) {
for (const selectionEvent of selections) {
const selection = selectionEvent.getSelection();
const nodeid = selection.getNodeId();
console.log("Selected Node: " + nodeid);
const md = await hwv.model.getNodeMeshData(nodeid);
console.log("isManifold: " + JSON.stringify(md.isManifold));
}
}
},
});
While it’s possible to set the overall color of the capping geometry via the function CuttingManager.setCappingFaceColor, there is no feature to add hatching lines as shown in the picture you attached.
Thanks,
Tino
Thank you for your answer