Open CASCADE Technology  7.3.0
Static Public Member Functions
Prs3d Class Reference

The Prs3d package provides the following services. More...

#include <Prs3d.hxx>

Static Public Member Functions

static Standard_Boolean MatchSegment (const Standard_Real X, const Standard_Real Y, const Standard_Real Z, const Standard_Real aDistance, const gp_Pnt &p1, const gp_Pnt &p2, Standard_Real &dist)
 draws an arrow at a given location, with respect to a given direction. More...
 
static Standard_Real GetDeflection (const TopoDS_Shape &theShape, const Handle< Prs3d_Drawer > &theDrawer)
 Computes the absolute deflection value depending on the type of deflection in theDrawer: More...
 
static Handle< Graphic3d_ArrayOfPrimitivesPrimitivesFromPolylines (const Prs3d_NListOfSequenceOfPnt &thePoints)
 Assembles array of primitives for sequence of polylines. More...
 
static void AddPrimitivesGroup (const Handle< Prs3d_Presentation > &thePrs, const Handle< Prs3d_LineAspect > &theAspect, Prs3d_NListOfSequenceOfPnt &thePolylines)
 Add primitives into new group in presentation and clear the list of polylines. More...
 

Detailed Description

The Prs3d package provides the following services.

Member Function Documentation

◆ AddPrimitivesGroup()

static void Prs3d::AddPrimitivesGroup ( const Handle< Prs3d_Presentation > &  thePrs,
const Handle< Prs3d_LineAspect > &  theAspect,
Prs3d_NListOfSequenceOfPnt thePolylines 
)
static

Add primitives into new group in presentation and clear the list of polylines.

◆ GetDeflection()

static Standard_Real Prs3d::GetDeflection ( const TopoDS_Shape theShape,
const Handle< Prs3d_Drawer > &  theDrawer 
)
static

Computes the absolute deflection value depending on the type of deflection in theDrawer:

  • Aspect_TOD_RELATIVE: the absolute deflection is computed using the relative deviation coefficient from theDrawer and the shape's bounding box;
  • Aspect_TOD_ABSOLUTE: the maximal chordial deviation from theDrawer is returned.

In case of the type of deflection in theDrawer computed relative deflection for shape is stored as absolute deflection. It is necessary to use it later on for sub-shapes. This function should always be used to compute the deflection value for building discrete representations of the shape (triangualtion, wireframe) to avoid incosistencies between different representations of the shape and undesirable visual artifacts.

◆ MatchSegment()

static Standard_Boolean Prs3d::MatchSegment ( const Standard_Real  X,
const Standard_Real  Y,
const Standard_Real  Z,
const Standard_Real  aDistance,
const gp_Pnt p1,
const gp_Pnt p2,
Standard_Real dist 
)
static

draws an arrow at a given location, with respect to a given direction.

◆ PrimitivesFromPolylines()

static Handle< Graphic3d_ArrayOfPrimitives > Prs3d::PrimitivesFromPolylines ( const Prs3d_NListOfSequenceOfPnt thePoints)
static

Assembles array of primitives for sequence of polylines.

Parameters
thePoints[in] the polylines sequence
Returns
array of primitives

The documentation for this class was generated from the following file: