How to toggle cutting plane visibility and toggle cutting plane section?

How to toggle cutting plane visibility and toggle cutting plane section?
6

Hey @619944680

I think for the visibility you can try:

const cuttingManager = hwv.cuttingManager;
    const cuttingSection = cuttingManager.getCuttingSection(0);
    cuttingSection.setOpacity(0);
    cuttingSection.setOpacity(1);

@guido Probably would be more helpful for the cutting plane section bit though. :slight_smile:

@guido Hi,guido.
I would like to ask how to toggle cutting plane visibility and toggle cutting plane section as in the official example?

I think for the cutting section you don’t want to mess with the opacity but instead activate and deactivate it:
https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.CuttingSection.html#Communicator.CuttingSection.deactivate