Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
BRepLib_FindSurface Class Reference

Provides an algorithm to find a Surface through a set of edges. More...

#include <BRepLib_FindSurface.hxx>

Public Member Functions

 BRepLib_FindSurface ()
 
 BRepLib_FindSurface (const TopoDS_Shape &S, const double Tol=-1, const bool OnlyPlane=false, const bool OnlyClosed=false)
 Computes the Surface from the edges of with the given tolerance. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If <OnlyClosed> is true, then S should be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored.
 
void Init (const TopoDS_Shape &S, const double Tol=-1, const bool OnlyPlane=false, const bool OnlyClosed=false)
 Computes the Surface from the edges of with the given tolerance. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If <OnlyClosed> is true, then S should be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored.
 
bool Found () const
 
occ::handle< Geom_SurfaceSurface () const
 
double Tolerance () const
 
double ToleranceReached () const
 
bool Existed () const
 
TopLoc_Location Location () const
 

Detailed Description

Provides an algorithm to find a Surface through a set of edges.

The edges of the shape given as argument are explored if they are not coplanar at the required tolerance the method Found returns false.

If a null tolerance is given the max of the edges tolerances is used.

The method Tolerance returns the true distance of the edges to the Surface.

The method Surface returns the Surface if found.

The method Existed returns True if the Surface was already attached to some of the edges.

When Existed returns True the Surface may have a location given by the Location method.

Constructor & Destructor Documentation

◆ BRepLib_FindSurface() [1/2]

BRepLib_FindSurface::BRepLib_FindSurface ( )

◆ BRepLib_FindSurface() [2/2]

BRepLib_FindSurface::BRepLib_FindSurface ( const TopoDS_Shape & S,
const double Tol = -1,
const bool OnlyPlane = false,
const bool OnlyClosed = false )

Computes the Surface from the edges of with the given tolerance. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If <OnlyClosed> is true, then S should be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored.

Member Function Documentation

◆ Existed()

bool BRepLib_FindSurface::Existed ( ) const

◆ Found()

bool BRepLib_FindSurface::Found ( ) const

◆ Init()

void BRepLib_FindSurface::Init ( const TopoDS_Shape & S,
const double Tol = -1,
const bool OnlyPlane = false,
const bool OnlyClosed = false )

Computes the Surface from the edges of with the given tolerance. if <OnlyPlane> is true, the computed surface will be a plane. If it is not possible to find a plane, the flag NotDone will be set. If <OnlyClosed> is true, then S should be a wire and the existing surface, on which wire S is not closed in 2D, will be ignored.

◆ Location()

TopLoc_Location BRepLib_FindSurface::Location ( ) const

◆ Surface()

occ::handle< Geom_Surface > BRepLib_FindSurface::Surface ( ) const

◆ Tolerance()

double BRepLib_FindSurface::Tolerance ( ) const

◆ ToleranceReached()

double BRepLib_FindSurface::ToleranceReached ( ) const

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