More detailed description of the problem would be helpful.
If you would like to display something on top of 3D presentation (e.g. ignoring depth values), then this could be achieved by using different Z-Layers (e.g. Graphic3d_ZLayerId_Topmost applied to the pipe inner line presentation).
Kirill Gavrilov, Thanks your Reply!
This is my code, but it does not work, what should i modify the code ?
Handle(Prs3d_Drawer) t1_select_style = myAISContext()->HighlightStyle(Prs3d_TypeOfHighlight_LocalSelected);
t1_select_style->SetMethod(Aspect_TOHM_COLOR);
t1_select_style->SetColor(Quantity_NOC_RED);
t1_select_style->SetDisplayMode(1);
t1_select_style->SetTransparency(0.4f);
t1_select_style-> SetZLayer(Graphic3d_ZLayerId_Topmost );
Thu, 05/13/2021 - 11:11
More detailed description of the problem would be helpful.
If you would like to display something on top of 3D presentation (e.g. ignoring depth values), then this could be achieved by using different Z-Layers (e.g. Graphic3d_ZLayerId_Topmost applied to the pipe inner line presentation).
Thu, 05/13/2021 - 21:05
Kirill Gavrilov, Thanks your Reply!
This is my code, but it does not work, what should i modify the code ?
Handle(Prs3d_Drawer) t1_select_style = myAISContext()->HighlightStyle(Prs3d_TypeOfHighlight_LocalSelected);
t1_select_style->SetMethod(Aspect_TOHM_COLOR);
t1_select_style->SetColor(Quantity_NOC_RED);
t1_select_style->SetDisplayMode(1);
t1_select_style->SetTransparency(0.4f);
t1_select_style-> SetZLayer(Graphic3d_ZLayerId_Topmost );