Skip to content
Discussion options

You must be logged in to vote

While I can understand wanting to use the existing tool and clip decoration since it's so close to what you want, there will obviously be times where creating your own tool to fully customize the behavior is desirable, this is one of those times.

You do have the option of sub-classing from the existing tool if you are happy with just turning the view flag off. Something like the following will likely suffice (as far as just creating/showing the clip decoration).

class MyTestClipByShapeTool extends ViewClipByShapeTool {
  public static override toolId = "MyTestClipByShape";

  public static disableClipVolume(viewport: Viewport): boolean {
    if (!viewport.viewFlags.clipVolume)
      retur…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ovaisa
Comment options

@bbastings
Comment options

@ovaisa
Comment options

@bbastings
Comment options

Answer selected by bbastings
@ovaisa
Comment options

@ovaisa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants