Crop line under a TextLabel

Hello community.

I wonder if there's any way to crop an AIS_Line that is drawn "under" an AIS_TextLabel.

I create measure lines and would like to crop the line when the label is in front of it independently to the current view zoom.

You can see in the snapshot my implementation on the left and what I would like to achieve on the right.

Thank you very much !

PS: if anyone can also help me to display attachment images directly in the thread message, I would love it :)

Attachments: 
gkv311 n's picture

PS: if anyone can also help me to display attachment images directly in the thread message, I would love it :)

You should be able to paste an image from the clipboard in HTML editor mode or embed image using Markdown / BBCode syntax.

gkv311 n's picture

I create measure lines and would like to crop the line when the label is in front of it independently to the current view zoom.

PrsDim_Dimension does this trick with a stencil-drawn rectangle (Graphic3d_Group::SetStencilTestOptions), which is expected to be part of the same presentation (label and line).