Open CASCADE Technology  7.7.0
Static Public Member Functions
BRepOffset Class Reference

Auxiliary tools for offset algorithms. More...

#include <BRepOffset.hxx>

Static Public Member Functions

static Handle< Geom_SurfaceSurface (const Handle< Geom_Surface > &Surface, const Standard_Real Offset, BRepOffset_Status &theStatus, Standard_Boolean allowC0=Standard_False)
 returns the Offset surface computed from the surface <Surface> at an OffsetDistance <Offset>. More...
 
static Handle< Geom_SurfaceCollapseSingularities (const Handle< Geom_Surface > &theSurface, const TopoDS_Face &theFace, Standard_Real thePrecision)
 Preprocess surface to be offset (bspline, bezier, or revolution based on bspline or bezier curve), by collapsing each singular side to single point. More...
 

Detailed Description

Auxiliary tools for offset algorithms.

Member Function Documentation

◆ CollapseSingularities()

static Handle< Geom_Surface > BRepOffset::CollapseSingularities ( const Handle< Geom_Surface > &  theSurface,
const TopoDS_Face theFace,
Standard_Real  thePrecision 
)
static

Preprocess surface to be offset (bspline, bezier, or revolution based on bspline or bezier curve), by collapsing each singular side to single point.

This is to avoid possible flipping of normal at the singularity of the surface due to non-zero distance between the poles that logically should be in one point (singularity).

The (parametric) side of the surface is considered to be singularity if face has degenerated edge whose vertex encompasses (by its tolerance) all points on that side, or if all poles defining that side fit into sphere with radius thePrecision.

Returns either original surface or its modified copy (if some poles have been moved).

◆ Surface()

static Handle< Geom_Surface > BRepOffset::Surface ( const Handle< Geom_Surface > &  Surface,
const Standard_Real  Offset,
BRepOffset_Status theStatus,
Standard_Boolean  allowC0 = Standard_False 
)
static

returns the Offset surface computed from the surface <Surface> at an OffsetDistance <Offset>.

If possible, this method returns the real type of the surface ( e.g. An Offset of a plane is a plane).

If no particular case is detected, the returned surface will have the Type Geom_OffsetSurface. Parameter allowC0 is then passed as last argument to constructor of Geom_OffsetSurface.


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