mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0028232: Visualization, StdPrs_ShadedShape - create WireFrame presentation for sole Vertex / Edge / Wire
This commit is contained in:
parent
8613985b2a
commit
b6826918fe
@ -60,21 +60,19 @@ namespace
|
||||
const TopoDS_Shape& theShape,
|
||||
const Handle (Prs3d_Drawer)& theDrawer)
|
||||
{
|
||||
Standard_Boolean aDrawAllVerticesFlag = (theDrawer->VertexDrawMode() == Prs3d_VDM_All);
|
||||
|
||||
if (!aDrawAllVerticesFlag && theShape.ShapeType() != TopAbs_COMPOUND)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
TopExp_Explorer aShapeIter (theShape, TopAbs_FACE);
|
||||
if (!aShapeIter.More())
|
||||
{
|
||||
// compound contains no shaded elements at all
|
||||
StdPrs_WFShape::Add (thePrs, theShape, theDrawer);
|
||||
return;
|
||||
}
|
||||
|
||||
const Standard_Boolean aDrawAllVerticesFlag = (theDrawer->VertexDrawMode() == Prs3d_VDM_All);
|
||||
if (!aDrawAllVerticesFlag && theShape.ShapeType() != TopAbs_COMPOUND)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// We have to create a compound and collect all subshapes not drawn by the shading algo.
|
||||
// This includes:
|
||||
// - isolated edges
|
||||
|
Loading…
x
Reference in New Issue
Block a user