# How to display the cutting line

**URL:** <https://forum.techsoft3d.com/t/how-to-display-the-cutting-line/4620>\
**Category:** HOOPS Visualize Web\
**Tags:** how-to\
**Created:** [May 7, 2025, 10:11pm UTC](https://forum.techsoft3d.com/t/how-to-display-the-cutting-line/4620 "2025-05-07T22:11:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![838629920](https://avatars.discourse-cdn.com/v4/letter/8/f17d59/32.png) [@838629920](https://forum.techsoft3d.com/u/838629920)\
**Post date:** [May 7, 2025, 10:11pm UTC](https://forum.techsoft3d.com/t/how-to-display-the-cutting-line/4620/1 "2025-05-07T22:11:40Z")

</div>

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

 ![c7b37d5b187b8339f72336483ef7b9c9](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/1/1e239dbf5e7519ff760b297e6ede422887cd8953.png)

 ![f007cf43d039c523c51f232283e7a5f1](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/1/14fa000c8883d94712684d91ce8bdf4278d480a6.png)

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [May 7, 2025, 10:41pm UTC](https://forum.techsoft3d.com/t/how-to-display-the-cutting-line/4620/2 "2025-05-07T22:41:03Z")

</div>

It’s possible to set the delay in the capping geometry creation using the function [setCappingDelay](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/CuttingManager.html#CuttingManager.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](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/MeshData.html#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:

```auto
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](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/CuttingManager.html#CuttingManager.setCappingFaceColor), there is no feature to add hatching lines as shown in the picture you attached.

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![838629920](https://avatars.discourse-cdn.com/v4/letter/8/f17d59/32.png) [@838629920](https://forum.techsoft3d.com/u/838629920)\
**Post date:** [May 9, 2025, 1:01am UTC](https://forum.techsoft3d.com/t/how-to-display-the-cutting-line/4620/3 "2025-05-09T01:01:52Z")

</div>

> [@tino](#):
>
> capping geometry is limited to models that are manifold

Thank you for your answer
