DiscussionsIssue archiveVisualization and 3D Viewer

Archived discussion

Crop line under a TextLabel

Visualization and 3D ViewerTue, 10/17/2023 - 14:472 replies

Browse this forum
QuestionAuthor

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 :)

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

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.

02Commenter-1

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).