mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0025300: Visualization - Build wireframe representation consistent with the shape's triangulation
1) Remove duplicating presentation algorithms for shapes StdPrs_WFShape, StdPrs_WFDeflectionShape. 2) Rewrite Prs3d_WFShape to use deflection for non-triangulated shapes and rename it to StdPrs_WFShape. 3) Revise and correct references in code. 4) Rename StdPrs_ToolShadedShape to StdPrs_ToolTriangulatedShape (reused in StdPrs_WFShape, StdPrs_ShadedShape). 5) Add StdPrs_BndBox for drawing bounding box presentation. 6) Implemented on-triangulation isoline builder. 7) Add option -isoontriangulation to vaspects command to enable on-triangulation isoline builder for shape. 8) Drawer's maximum UV parameter value is taken into account in isolines calculation correctly. 9) Add option -setMaxParamValue to vaspects command to change drawer's maximum UV parameter value.
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
#include <Prs3d_Presentation.hxx>
|
||||
#include <Prs3d_Projector.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
#include <StdPrs_WFShape.hxx>
|
||||
#include <StdPrs_ShadedShape.hxx>
|
||||
#include <StdPrs_WFDeflectionShape.hxx>
|
||||
#include <StdSelect_Shape.hxx>
|
||||
#include <TopAbs_ShapeEnum.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
@@ -45,10 +45,10 @@ void StdSelect_Shape::Compute(const Handle(PrsMgr_PresentationManager3d)& /*PM*/
|
||||
if(CanShade)
|
||||
StdPrs_ShadedShape::Add (P, mysh, myDrawer);
|
||||
else
|
||||
StdPrs_WFDeflectionShape::Add (P, mysh, myDrawer);
|
||||
StdPrs_WFShape::Add (P, mysh, myDrawer);
|
||||
}
|
||||
else if (aMode==0)
|
||||
StdPrs_WFDeflectionShape::Add (P, mysh, myDrawer);
|
||||
StdPrs_WFShape::Add (P, mysh, myDrawer);
|
||||
}
|
||||
|
||||
void StdSelect_Shape::Compute(const Handle(Prs3d_Projector)& aProjector ,
|
||||
|
Reference in New Issue
Block a user