OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    StdPrs_Isolines Class Reference

    Tool for computing isoline representation for a face or surface. Depending on a flags set to the given Prs3d_Drawer instance, on-surface (is used by default) or on-triangulation isoline builder algorithm will be used. If the given shape is not triangulated, on-surface isoline builder will be applied regardless of Prs3d_Drawer flags. More...

    #include <StdPrs_Isolines.hxx>

    Inheritance diagram for StdPrs_Isolines:

    Data Structures

    struct  PntOnIso
     Auxiliary structure defining 3D point on isoline. More...
    struct  SegOnIso
     Auxiliary structure defining segment of isoline. More...

    Static Public Member Functions

    static void Add (const occ::handle< Prs3d_Presentation > &thePresentation, const TopoDS_Face &theFace, const occ::handle< Prs3d_Drawer > &theDrawer, const double theDeflection)
     Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face.
    static void Add (const TopoDS_Face &theFace, const occ::handle< Prs3d_Drawer > &theDrawer, const double theDeflection, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &theUPolylines, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &theVPolylines)
     Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face.
    static void AddOnTriangulation (const occ::handle< Prs3d_Presentation > &thePresentation, const TopoDS_Face &theFace, const occ::handle< Prs3d_Drawer > &theDrawer)
     Computes isolines on triangulation and adds them to a presentation.
    static void AddOnTriangulation (const TopoDS_Face &theFace, const occ::handle< Prs3d_Drawer > &theDrawer, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &theUPolylines, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &theVPolylines)
     Computes isolines on triangulation.
    static void AddOnTriangulation (const occ::handle< Prs3d_Presentation > &thePresentation, const occ::handle< Poly_Triangulation > &theTriangulation, const occ::handle< Geom_Surface > &theSurface, const TopLoc_Location &theLocation, const occ::handle< Prs3d_Drawer > &theDrawer, const NCollection_Sequence< double > &theUIsoParams, const NCollection_Sequence< double > &theVIsoParams)
     Computes isolines on triangulation and adds them to a presentation.
    static void AddOnSurface (const occ::handle< Prs3d_Presentation > &thePresentation, const TopoDS_Face &theFace, const occ::handle< Prs3d_Drawer > &theDrawer, const double theDeflection)
     Computes isolines on surface and adds them to presentation.
    static void AddOnSurface (const TopoDS_Face &theFace, const occ::handle< Prs3d_Drawer > &theDrawer, const double theDeflection, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &theUPolylines, NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > &theVPolylines)
     Computes isolines on surface and adds them to presentation.
    static void AddOnSurface (const occ::handle< Prs3d_Presentation > &thePresentation, const occ::handle< BRepAdaptor_Surface > &theSurface, const occ::handle< Prs3d_Drawer > &theDrawer, const double theDeflection, const NCollection_Sequence< double > &theUIsoParams, const NCollection_Sequence< double > &theVIsoParams)
     Computes isolines on surface and adds them to presentation.
    static void UVIsoParameters (const TopoDS_Face &theFace, const int theNbIsoU, const int theNbIsoV, const double theUVLimit, NCollection_Sequence< double > &theUIsoParams, NCollection_Sequence< double > &theVIsoParams, double &theUmin, double &theUmax, double &theVmin, double &theVmax)
     Evaluate sequence of parameters for drawing uv isolines for a given face.
    Static Public Member Functions inherited from Prs3d_Root
    called static instead occ::handle< Graphic3d_Group > CurrentGroup (const occ::handle< Prs3d_Presentation > &thePrs3d)
    static instead occ::handle< Graphic3d_Group > NewGroup (const occ::handle< Prs3d_Presentation > &thePrs3d)

    Detailed Description

    Tool for computing isoline representation for a face or surface. Depending on a flags set to the given Prs3d_Drawer instance, on-surface (is used by default) or on-triangulation isoline builder algorithm will be used. If the given shape is not triangulated, on-surface isoline builder will be applied regardless of Prs3d_Drawer flags.

    Member Function Documentation

    ◆ Add() [1/2]

    void StdPrs_Isolines::Add ( const occ::handle< Prs3d_Presentation > & thePresentation,
    const TopoDS_Face & theFace,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const double theDeflection )
    inlinestatic

    Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face.

    Parameters
    [in]thePresentationthe presentation.
    [in]theFacethe face.
    [in]theDrawerthe display settings.
    [in]theDeflectionthe deflection for isolines-on-surface version.

    ◆ Add() [2/2]

    void StdPrs_Isolines::Add ( const TopoDS_Face & theFace,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const double theDeflection,
    NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & theUPolylines,
    NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & theVPolylines )
    inlinestatic

    Computes isolines presentation for a TopoDS face. This method chooses proper version of isoline builder algorithm : on triangulation or surface depending on the flag passed from Prs3d_Drawer attributes. This method is a default way to display isolines for a given TopoDS face.

    Parameters
    [in]theFacethe face.
    [in]theDrawerthe display settings.
    [in]theDeflectionthe deflection for isolines-on-surface version.

    ◆ AddOnSurface() [1/3]

    void StdPrs_Isolines::AddOnSurface ( const occ::handle< Prs3d_Presentation > & thePresentation,
    const occ::handle< BRepAdaptor_Surface > & theSurface,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const double theDeflection,
    const NCollection_Sequence< double > & theUIsoParams,
    const NCollection_Sequence< double > & theVIsoParams )
    static

    Computes isolines on surface and adds them to presentation.

    Parameters
    [in]thePresentationthe presentation.
    [in]theSurfacethe surface.
    [in]theDrawerthe display settings.
    [in]theDeflectionthe deflection value.
    [in]theUIsoParamsthe parameters of u isolines to compute.
    [in]theVIsoParamsthe parameters of v isolines to compute.

    ◆ AddOnSurface() [2/3]

    void StdPrs_Isolines::AddOnSurface ( const occ::handle< Prs3d_Presentation > & thePresentation,
    const TopoDS_Face & theFace,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const double theDeflection )
    static

    Computes isolines on surface and adds them to presentation.

    Parameters
    [in]thePresentationthe presentation.
    [in]theFacethe face.
    [in]theDrawerthe display settings.
    [in]theDeflectionthe deflection value.

    ◆ AddOnSurface() [3/3]

    void StdPrs_Isolines::AddOnSurface ( const TopoDS_Face & theFace,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const double theDeflection,
    NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & theUPolylines,
    NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & theVPolylines )
    static

    Computes isolines on surface and adds them to presentation.

    Parameters
    [in]theFacethe face
    [in]theDrawerthe display settings
    [in]theDeflectionthe deflection value
    [out]theUPolylinesthe sequence of result polylines
    [out]theVPolylinesthe sequence of result polylines

    ◆ AddOnTriangulation() [1/3]

    void StdPrs_Isolines::AddOnTriangulation ( const occ::handle< Prs3d_Presentation > & thePresentation,
    const occ::handle< Poly_Triangulation > & theTriangulation,
    const occ::handle< Geom_Surface > & theSurface,
    const TopLoc_Location & theLocation,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    const NCollection_Sequence< double > & theUIsoParams,
    const NCollection_Sequence< double > & theVIsoParams )
    static

    Computes isolines on triangulation and adds them to a presentation.

    Parameters
    [in]thePresentationthe presentation.
    [in]theTriangulationthe triangulation.
    [in]theSurfacethe definition of triangulated surface. The surface adapter is used to precisely evaluate isoline points using surface law and fit them on triangulation. If NULL is passed, the method will use linear interpolation of triangle node's UV coordinates to evaluate isoline points.
    [in]theLocationthe location transformation defined for triangulation (surface).
    [in]theDrawerthe display settings.
    [in]theUIsoParamsthe parameters of u isolines to compute.
    [in]theVIsoParamsthe parameters of v isolines to compute.

    ◆ AddOnTriangulation() [2/3]

    void StdPrs_Isolines::AddOnTriangulation ( const occ::handle< Prs3d_Presentation > & thePresentation,
    const TopoDS_Face & theFace,
    const occ::handle< Prs3d_Drawer > & theDrawer )
    static

    Computes isolines on triangulation and adds them to a presentation.

    Parameters
    [in]thePresentationthe presentation.
    [in]theFacethe face.
    [in]theDrawerthe display settings.

    ◆ AddOnTriangulation() [3/3]

    void StdPrs_Isolines::AddOnTriangulation ( const TopoDS_Face & theFace,
    const occ::handle< Prs3d_Drawer > & theDrawer,
    NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & theUPolylines,
    NCollection_List< occ::handle< NCollection_HSequence< gp_Pnt > > > & theVPolylines )
    static

    Computes isolines on triangulation.

    Parameters
    [in]theFacethe face.
    [in]theDrawerthe display settings.
    [out]theUPolylinesthe sequence of result polylines
    [out]theVPolylinesthe sequence of result polylines

    ◆ UVIsoParameters()

    void StdPrs_Isolines::UVIsoParameters ( const TopoDS_Face & theFace,
    const int theNbIsoU,
    const int theNbIsoV,
    const double theUVLimit,
    NCollection_Sequence< double > & theUIsoParams,
    NCollection_Sequence< double > & theVIsoParams,
    double & theUmin,
    double & theUmax,
    double & theVmin,
    double & theVmax )
    static

    Evaluate sequence of parameters for drawing uv isolines for a given face.

    Parameters
    [in]theFacethe face.
    [in]theNbIsoUthe number of u isolines.
    [in]theNbIsoVthe number of v isolines.
    [in]theUVLimitthe u, v parameter value limit.
    [out]theUIsoParamsthe sequence of u isoline parameters.
    [out]theVIsoParamsthe sequence of v isoline parameters.
    [out]theUminthe lower U boundary of theFace.
    [out]theUmaxthe upper U boundary of theFace.
    [out]theVminthe lower V boundary of theFace.
    [out]theVmaxthe upper V boundary of theFace.

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