OCC.StdPrs module

for specific geometries and topologies whereasPrs3d provides those for generic objects. Amongthese classes are definitions of the display of thespecific geometry or topology in various displaymodes such as wireframe, shading or hidden line removal mode.

class StdPrs_Curve

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is defined by LineAspect in aDrawer. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • drawCurve (bool) – default value is Standard_True
Return type:

void

  • Adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is defined by LineAspect in aDrawer. The drawing will be limited between the points of parameter U1 and U2. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • drawCurve (bool) – default value is Standard_True
Return type:

void

  • adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is the current aspect. aDeflection is used in the circle case. Points give a sequence of curve points. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • aDeflection (Quantity_Length) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • Points (TColgp_SequenceOfPnt) –
  • drawCurve (bool) – default value is Standard_True
Return type:

void

  • adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is the current aspect. The drawing will be limited between the points of parameter U1 and U2. aDeflection is used in the circle case. Points give a sequence of curve points. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDeflection (Quantity_Length) –
  • Points (TColgp_SequenceOfPnt) –
  • aNbPoints (int) – default value is 30
  • drawCurve (bool) – default value is Standard_True
Return type:

void

static Match()
  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve is less than aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve is less than aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDeflection (Quantity_Length) –
  • aLimit (float) –
  • aNbPoints (int) –
Return type:

bool

  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve aCurve is less than aDistance. The drawing is considered between the points of parameter U1 and U2;
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve aCurve is less than aDistance. The drawing is considered between the points of parameter U1 and U2;
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDeflection (Quantity_Length) –
  • aNbPoints (int) –
Return type:

bool

thisown

The membership flag

StdPrs_Curve_Add()
  • Adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is defined by LineAspect in aDrawer. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • drawCurve (bool) – default value is Standard_True
Return type:

void

  • Adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is defined by LineAspect in aDrawer. The drawing will be limited between the points of parameter U1 and U2. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • drawCurve (bool) – default value is Standard_True
Return type:

void

  • adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is the current aspect. aDeflection is used in the circle case. Points give a sequence of curve points. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • aDeflection (Quantity_Length) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • Points (TColgp_SequenceOfPnt) –
  • drawCurve (bool) – default value is Standard_True
Return type:

void

  • adds to the presentation aPresentation the drawing of the curve aCurve. The aspect is the current aspect. The drawing will be limited between the points of parameter U1 and U2. aDeflection is used in the circle case. Points give a sequence of curve points. If drawCurve equals Standard_False the curve will not be displayed, it is used if the curve is a part of some shape and PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDeflection (Quantity_Length) –
  • Points (TColgp_SequenceOfPnt) –
  • aNbPoints (int) – default value is 30
  • drawCurve (bool) – default value is Standard_True
Return type:

void

StdPrs_Curve_Match()
  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve is less than aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve is less than aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDeflection (Quantity_Length) –
  • aLimit (float) –
  • aNbPoints (int) –
Return type:

bool

  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve aCurve is less than aDistance. The drawing is considered between the points of parameter U1 and U2;
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

  • returns true if the distance between the point (X,Y,Z) and the drawing of the curve aCurve is less than aDistance. The drawing is considered between the points of parameter U1 and U2;
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • U1 (float) –
  • U2 (float) –
  • aDeflection (Quantity_Length) –
  • aNbPoints (int) –
Return type:

bool

class StdPrs_HLRPolyShape

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Defines the hidden line removal display of the topology aShape in the projection defined by aProjector. The shape and the projection are added to the display aPresentation, and the attributes of the elements present in the aPresentation are defined by the attribute manager aDrawer.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aShape (TopoDS_Shape &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • aProjector (Handle_Prs3d_Projector &) –
Return type:

void

thisown

The membership flag

StdPrs_HLRPolyShape_Add()
  • Defines the hidden line removal display of the topology aShape in the projection defined by aProjector. The shape and the projection are added to the display aPresentation, and the attributes of the elements present in the aPresentation are defined by the attribute manager aDrawer.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aShape (TopoDS_Shape &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • aProjector (Handle_Prs3d_Projector &) –
Return type:

void

class StdPrs_HLRShape

Bases: OCC.Prs3d.Prs3d_Root

static Add()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theProjector (Handle_Prs3d_Projector &) –
Return type:

void

thisown

The membership flag

StdPrs_HLRShape_Add()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theProjector (Handle_Prs3d_Projector &) –
Return type:

void

class StdPrs_HLRToolShape(*args)

Bases: object

Parameters:
  • TheShape (TopoDS_Shape &) –
  • TheProjector (HLRAlgo_Projector &) –
Return type:

None

Hidden()
Parameters:
  • TheEdge (BRepAdaptor_Curve &) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

None

InitHidden()
Parameters:EdgeNumber (int) –
Return type:None
InitVisible()
Parameters:EdgeNumber (int) –
Return type:None
MoreHidden()
Return type:bool
MoreVisible()
Return type:bool
NbEdges()
Return type:int
NextHidden()
Return type:None
NextVisible()
Return type:None
Visible()
Parameters:
  • TheEdge (BRepAdaptor_Curve &) –
  • U1 (float &) –
  • U2 (float &) –
Return type:

None

thisown

The membership flag

class StdPrs_Plane

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Defines display of infinite planes. The infinite plane aPlane is added to the display aPresentation, and the attributes of the display are defined by the attribute manager aDrawer.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aPlane (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

static Match()
  • returns true if the distance between the point (X,Y,Z) and the plane is less than aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aPlane (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

thisown

The membership flag

StdPrs_Plane_Add()
  • Defines display of infinite planes. The infinite plane aPlane is added to the display aPresentation, and the attributes of the display are defined by the attribute manager aDrawer.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aPlane (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

StdPrs_Plane_Match()
  • returns true if the distance between the point (X,Y,Z) and the plane is less than aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aPlane (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

class StdPrs_PoleCurve

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Defines display of BSpline and Bezier curves. Adds the 3D curve aCurve to the StdPrs_PoleCurve algorithm. This shape is found in the presentation object aPresentation, and its display attributes are set in the attribute manager aDrawer. The curve object from Adaptor3d provides data from a Geom curve. This makes it possible to use the surface in a geometric algorithm.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

static Match()
  • returns true if the distance between the point (X,Y,Z) and the broken line made of the poles is less then aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

static Pick()
  • returns the pole the most near of the point (X,Y,Z) and returns its range. The distance between the pole and (X,Y,Z) must be less then aDistance. If no pole corresponds, 0 is returned.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

int

thisown

The membership flag

StdPrs_PoleCurve_Add()
  • Defines display of BSpline and Bezier curves. Adds the 3D curve aCurve to the StdPrs_PoleCurve algorithm. This shape is found in the presentation object aPresentation, and its display attributes are set in the attribute manager aDrawer. The curve object from Adaptor3d provides data from a Geom curve. This makes it possible to use the surface in a geometric algorithm.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

StdPrs_PoleCurve_Match()
  • returns true if the distance between the point (X,Y,Z) and the broken line made of the poles is less then aDistance.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

StdPrs_PoleCurve_Pick()
  • returns the pole the most near of the point (X,Y,Z) and returns its range. The distance between the pole and (X,Y,Z) must be less then aDistance. If no pole corresponds, 0 is returned.
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aCurve (Adaptor3d_Curve &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

int

class StdPrs_ShadedShape

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Shades <theShape>. @param theVolumeType defines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theVolume (StdPrs_Volume) – default value is StdPrs_Volume_Autodetection
Return type:

void

  • Shades <theShape> with texture coordinates. @param theVolumeType defines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theHasTexels (bool) –
  • theUVOrigin (gp_Pnt2d) –
  • theUVRepeat (gp_Pnt2d) –
  • theUVScale (gp_Pnt2d) –
  • theVolume (StdPrs_Volume) – default value is StdPrs_Volume_Autodetection
Return type:

void

static ExploreSolids()
  • Searches closed and unclosed subshapes in shape structure and puts them into two compounds for separate processing of closed and unclosed sub-shapes
Parameters:
  • theShape (TopoDS_Shape &) –
  • theBuilder (BRep_Builder &) –
  • theClosed (TopoDS_Compound &) –
  • theOpened (TopoDS_Compound &) –
  • theIgnore1DSubShape (bool) –
Return type:

void

static Tessellate()
  • Validates triangulation within the shape and performs tessellation if necessary.
Parameters:
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

thisown

The membership flag

StdPrs_ShadedShape_Add()
  • Shades <theShape>. @param theVolumeType defines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theVolume (StdPrs_Volume) – default value is StdPrs_Volume_Autodetection
Return type:

void

  • Shades <theShape> with texture coordinates. @param theVolumeType defines the way how to interpret input shapes - as Closed volumes (to activate back-face culling and capping plane algorithms), as Open volumes (shells or solids with holes) or to perform Autodetection (would split input shape into two groups)
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theHasTexels (bool) –
  • theUVOrigin (gp_Pnt2d) –
  • theUVRepeat (gp_Pnt2d) –
  • theUVScale (gp_Pnt2d) –
  • theVolume (StdPrs_Volume) – default value is StdPrs_Volume_Autodetection
Return type:

void

StdPrs_ShadedShape_ExploreSolids()
  • Searches closed and unclosed subshapes in shape structure and puts them into two compounds for separate processing of closed and unclosed sub-shapes
Parameters:
  • theShape (TopoDS_Shape &) –
  • theBuilder (BRep_Builder &) –
  • theClosed (TopoDS_Compound &) –
  • theOpened (TopoDS_Compound &) –
  • theIgnore1DSubShape (bool) –
Return type:

void

StdPrs_ShadedShape_Tessellate()
  • Validates triangulation within the shape and performs tessellation if necessary.
Parameters:
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

class StdPrs_ShadedSurface

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Adds the surface aSurface to the presentation object aPresentation. The surface’s display attributes are set in the attribute manager aDrawer. The surface object from Adaptor3d provides data from a Geom surface in order to use the surface in an algorithm.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

thisown

The membership flag

StdPrs_ShadedSurface_Add()
  • Adds the surface aSurface to the presentation object aPresentation. The surface’s display attributes are set in the attribute manager aDrawer. The surface object from Adaptor3d provides data from a Geom surface in order to use the surface in an algorithm.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

class StdPrs_ToolPoint

Bases: object

static Coord()
Parameters:
  • aPoint (Handle_Geom_Point &) –
  • X (Quantity_Length &) –
  • Y (Quantity_Length &) –
  • Z (Quantity_Length &) –
Return type:

void

thisown

The membership flag

StdPrs_ToolPoint_Coord()
Parameters:
  • aPoint (Handle_Geom_Point &) –
  • X (Quantity_Length &) –
  • Y (Quantity_Length &) –
  • Z (Quantity_Length &) –
Return type:

void

class StdPrs_ToolRFace(*args)

Bases: object

Return type:None
Parameters:aSurface (Handle_BRepAdaptor_HSurface &) –
Return type:None
Init()
Return type:None
IsOriented()
Return type:bool
More()
Return type:bool
Next()
Return type:None
Orientation()
Return type:TopAbs_Orientation
Value()
Return type:Adaptor2d_Curve2dPtr
thisown

The membership flag

class StdPrs_ToolShadedShape

Bases: object

static IsClosed()
  • Checks back faces visibility for specified shape (to activate back-face culling). returns true if shape is closed manifold Solid or compound of such Solids.
Parameters:theShape (TopoDS_Shape &) –
Return type:bool
static IsTriangulated()
  • Similar to BRepTools::Triangulation() but without extra checks. returns true if all faces within shape are triangulated.
Parameters:theShape (TopoDS_Shape &) –
Return type:bool
static Normal()
Parameters:
Return type:

void

static Triangulation()
Parameters:
  • aFace (TopoDS_Face &) –
  • loc (TopLoc_Location &) –
Return type:

Handle_Poly_Triangulation

thisown

The membership flag

StdPrs_ToolShadedShape_IsClosed()
  • Checks back faces visibility for specified shape (to activate back-face culling). returns true if shape is closed manifold Solid or compound of such Solids.
Parameters:theShape (TopoDS_Shape &) –
Return type:bool
StdPrs_ToolShadedShape_IsTriangulated()
  • Similar to BRepTools::Triangulation() but without extra checks. returns true if all faces within shape are triangulated.
Parameters:theShape (TopoDS_Shape &) –
Return type:bool
StdPrs_ToolShadedShape_Normal()
Parameters:
Return type:

void

StdPrs_ToolShadedShape_Triangulation()
Parameters:
  • aFace (TopoDS_Face &) –
  • loc (TopLoc_Location &) –
Return type:

Handle_Poly_Triangulation

class StdPrs_ToolVertex

Bases: object

static Coord()
Parameters:
  • aPoint (TopoDS_Vertex &) –
  • X (Quantity_Length &) –
  • Y (Quantity_Length &) –
  • Z (Quantity_Length &) –
Return type:

void

thisown

The membership flag

StdPrs_ToolVertex_Coord()
Parameters:
  • aPoint (TopoDS_Vertex &) –
  • X (Quantity_Length &) –
  • Y (Quantity_Length &) –
  • Z (Quantity_Length &) –
Return type:

void

class StdPrs_WFDeflectionRestrictedFace

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Defines a display featuring U and V isoparameters. Adds the surface aFace to the StdPrs_WFRestrictedFace algorithm. This face is found in a shape in the presentation object aPresentation, and its display attributes - in particular, the number of U and V isoparameters - are set in the attribute manager aDrawer. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

  • Defines a display of a delection-specified face. The display will feature U and V isoparameters. Adds the topology aShape to the StdPrs_WFRestrictedFace algorithm. This shape is found in the presentation object aPresentation, and its display attributes - except the number of U and V isoparameters - are set in the attribute manager aDrawer. The function sets the number of U and V isoparameters, NBUiso and NBViso, in the shape. To do this, the arguments DrawUIso and DrawVIso must be true. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface. Curves give a sequence of face curves, it is used if the PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • DrawUIso (bool) –
  • DrawVIso (bool) –
  • Deflection (Quantity_Length) –
  • NBUiso (int) –
  • NBViso (int) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • Curves (Prs3d_NListOfSequenceOfPnt &) –
Return type:

void

static AddBox()
  • Adds box as polyline to the presentation object
Parameters:
  • thePrs (Handle_Prs3d_Presentation &) –
  • theBndBox (Bnd_Box &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

static AddUIso()
  • Defines a display featuring U isoparameters respectively. Add the surface aFace to the StdPrs_WFRestrictedFace algorithm. This face is found in a shape in the presentation object aPresentation, and its display attributes - in particular, the number of U isoparameters - are set in the attribute manager aDrawer. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed to the function as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

static AddVIso()
  • Defines a display featuring V isoparameters respectively. Add the surface aFace to the StdPrs_WFRestrictedFace algorithm. This face is found in a shape in the presentation object aPresentation, and its display attributes - in particular, the number of V isoparameters - are set in the attribute manager aDrawer. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed to the function as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

static Match()
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • X
  • Y
  • Z
  • aDistance
  • aFace
  • aDrawer
  • DrawUIso (bool) –
  • DrawVIso (bool) –
  • aDeflection (Quantity_Length) –
  • NBUiso (int) –
  • NBViso (int) –
Return type:

bool

Return type:

bool

static MatchUIso()
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

static MatchVIso()
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

thisown

The membership flag

StdPrs_WFDeflectionRestrictedFace_Add()
  • Defines a display featuring U and V isoparameters. Adds the surface aFace to the StdPrs_WFRestrictedFace algorithm. This face is found in a shape in the presentation object aPresentation, and its display attributes - in particular, the number of U and V isoparameters - are set in the attribute manager aDrawer. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

  • Defines a display of a delection-specified face. The display will feature U and V isoparameters. Adds the topology aShape to the StdPrs_WFRestrictedFace algorithm. This shape is found in the presentation object aPresentation, and its display attributes - except the number of U and V isoparameters - are set in the attribute manager aDrawer. The function sets the number of U and V isoparameters, NBUiso and NBViso, in the shape. To do this, the arguments DrawUIso and DrawVIso must be true. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface. Curves give a sequence of face curves, it is used if the PrimitiveArray visualization approach is activated (it is activated by default).
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • DrawUIso (bool) –
  • DrawVIso (bool) –
  • Deflection (Quantity_Length) –
  • NBUiso (int) –
  • NBViso (int) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • Curves (Prs3d_NListOfSequenceOfPnt &) –
Return type:

void

StdPrs_WFDeflectionRestrictedFace_AddBox()
  • Adds box as polyline to the presentation object
Parameters:
  • thePrs (Handle_Prs3d_Presentation &) –
  • theBndBox (Bnd_Box &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

StdPrs_WFDeflectionRestrictedFace_AddUIso()
  • Defines a display featuring U isoparameters respectively. Add the surface aFace to the StdPrs_WFRestrictedFace algorithm. This face is found in a shape in the presentation object aPresentation, and its display attributes - in particular, the number of U isoparameters - are set in the attribute manager aDrawer. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed to the function as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

StdPrs_WFDeflectionRestrictedFace_AddVIso()
  • Defines a display featuring V isoparameters respectively. Add the surface aFace to the StdPrs_WFRestrictedFace algorithm. This face is found in a shape in the presentation object aPresentation, and its display attributes - in particular, the number of V isoparameters - are set in the attribute manager aDrawer. aFace is BRepAdaptor_HSurface surface created from a face in a topological shape. which is passed to the function as an argument through the BRepAdaptor_HSurface surface created from it. This is what allows the topological face to be treated as a geometric surface.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

StdPrs_WFDeflectionRestrictedFace_Match()
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
  • X
  • Y
  • Z
  • aDistance
  • aFace
  • aDrawer
  • DrawUIso (bool) –
  • DrawVIso (bool) –
  • aDeflection (Quantity_Length) –
  • NBUiso (int) –
  • NBViso (int) –
Return type:

bool

Return type:

bool

StdPrs_WFDeflectionRestrictedFace_MatchUIso()
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

StdPrs_WFDeflectionRestrictedFace_MatchVIso()
Parameters:
  • X (Quantity_Length) –
  • Y (Quantity_Length) –
  • Z (Quantity_Length) –
  • aDistance (Quantity_Length) –
  • aFace (Handle_BRepAdaptor_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

class StdPrs_WFDeflectionShape(*args, **kwargs)

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Add shape to presentation
Parameters:
  • thePrs (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline void

static PickCurve()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

static PickPatch()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

thisown

The membership flag

StdPrs_WFDeflectionShape_Add()
  • Add shape to presentation
Parameters:
  • thePrs (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline void

StdPrs_WFDeflectionShape_PickCurve()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

StdPrs_WFDeflectionShape_PickPatch()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

class StdPrs_WFDeflectionSurface

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Adds the surface aSurface to the presentation object aPresentation, and defines its boundaries and isoparameters. The shape’s display attributes are set in the attribute manager aDrawer. These include whether deflection is absolute or relative to the size of the shape. The surface aSurface is a surface object from Adaptor, and provides data from a Geom surface. This makes it possible to use the surface in a geometric algorithm. Note that this surface object is manipulated by handles.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Handle_Adaptor3d_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

thisown

The membership flag

StdPrs_WFDeflectionSurface_Add()
  • Adds the surface aSurface to the presentation object aPresentation, and defines its boundaries and isoparameters. The shape’s display attributes are set in the attribute manager aDrawer. These include whether deflection is absolute or relative to the size of the shape. The surface aSurface is a surface object from Adaptor, and provides data from a Geom surface. This makes it possible to use the surface in a geometric algorithm. Note that this surface object is manipulated by handles.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Handle_Adaptor3d_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

class StdPrs_WFPoleSurface

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Adds the surface aSurface to the presentation object aPresentation. The shape’s display attributes are set in the attribute manager aDrawer. The surface aSurface is a surface object from Adaptor3d, and provides data from a Geom surface. This makes it possible to use the surface in a geometric algorithm.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

thisown

The membership flag

StdPrs_WFPoleSurface_Add()
  • Adds the surface aSurface to the presentation object aPresentation. The shape’s display attributes are set in the attribute manager aDrawer. The surface aSurface is a surface object from Adaptor3d, and provides data from a Geom surface. This makes it possible to use the surface in a geometric algorithm.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Adaptor3d_Surface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

class StdPrs_WFRestrictedFace

Bases: OCC.Prs3d.Prs3d_Root

static Add()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawUIso (bool) –
  • theDrawVIso (bool) –
  • theDeflection (Quantity_Length) –
  • theNbUIso (int) –
  • theNbVIso (int) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theCurves (Prs3d_NListOfSequenceOfPnt &) –
  • thePresentation
  • theFace
  • theDrawer
Return type:

void

Return type:

void

static AddUIso()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

static AddVIso()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

static Match()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawUIso (bool) –
  • theDrawVIso (bool) –
  • theDeflection (Quantity_Length) –
  • theNbUIso (int) –
  • theNbVIso (int) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theX
  • theY
  • theZ
  • theDistance
  • theFace
  • theDrawer
Return type:

bool

Return type:

bool

static MatchUIso()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

static MatchVIso()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

thisown

The membership flag

StdPrs_WFRestrictedFace_Add()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawUIso (bool) –
  • theDrawVIso (bool) –
  • theDeflection (Quantity_Length) –
  • theNbUIso (int) –
  • theNbVIso (int) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theCurves (Prs3d_NListOfSequenceOfPnt &) –
  • thePresentation
  • theFace
  • theDrawer
Return type:

void

Return type:

void

StdPrs_WFRestrictedFace_AddUIso()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

StdPrs_WFRestrictedFace_AddVIso()
Parameters:
  • thePresentation (Handle_Prs3d_Presentation &) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

StdPrs_WFRestrictedFace_Match()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawUIso (bool) –
  • theDrawVIso (bool) –
  • theDeflection (Quantity_Length) –
  • theNbUIso (int) –
  • theNbVIso (int) –
  • theDrawer (Handle_Prs3d_Drawer &) –
  • theX
  • theY
  • theZ
  • theDistance
  • theFace
  • theDrawer
Return type:

bool

Return type:

bool

StdPrs_WFRestrictedFace_MatchUIso()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

StdPrs_WFRestrictedFace_MatchVIso()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theFace (Handle_BRepAdaptor_HSurface &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

bool

class StdPrs_WFShape(*args, **kwargs)

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Add shape to presentation
Parameters:
  • thePrs (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline void

static PickCurve()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

static PickPatch()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

thisown

The membership flag

StdPrs_WFShape_Add()
  • Add shape to presentation
Parameters:
  • thePrs (Handle_Prs3d_Presentation &) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline void

StdPrs_WFShape_PickCurve()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

StdPrs_WFShape_PickPatch()
Parameters:
  • theX (Quantity_Length) –
  • theY (Quantity_Length) –
  • theZ (Quantity_Length) –
  • theDistance (Quantity_Length) –
  • theShape (TopoDS_Shape &) –
  • theDrawer (Handle_Prs3d_Drawer &) –
Return type:

inline Handle_TopTools_HSequenceOfShape

class StdPrs_WFSurface

Bases: OCC.Prs3d.Prs3d_Root

static Add()
  • Draws a surface by drawing the isoparametric curves with respect to a fixed number of points given by the Drawer. The number of isoparametric curves to be drawn and their color are controlled by the furnished Drawer.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Handle_Adaptor3d_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

thisown

The membership flag

StdPrs_WFSurface_Add()
  • Draws a surface by drawing the isoparametric curves with respect to a fixed number of points given by the Drawer. The number of isoparametric curves to be drawn and their color are controlled by the furnished Drawer.
Parameters:
  • aPresentation (Handle_Prs3d_Presentation &) –
  • aSurface (Handle_Adaptor3d_HSurface &) –
  • aDrawer (Handle_Prs3d_Drawer &) –
Return type:

void

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

Inserts the handle into the base object to prevent memory corruption in certain cases