Open CASCADE Technology  6.9.0
Public Member Functions

ShapeFix_FreeBounds Class Reference

This class is intended to output free bounds of the shape (free bounds are the wires consisting of edges referenced by the only face). For building free bounds it uses ShapeAnalysis_FreeBounds class. This class complements it with the feature to reduce the number of open wires. This reduction is performed with help of connecting several adjacent open wires one to another what can lead to: More...

#include <ShapeFix_FreeBounds.hxx>

Public Member Functions

 ShapeFix_FreeBounds ()
 Empty constructor. More...
 
 ShapeFix_FreeBounds (const TopoDS_Shape &shape, const Standard_Real sewtoler, const Standard_Real closetoler, const Standard_Boolean splitclosed, const Standard_Boolean splitopen)
 Builds forecasting free bounds of the <shape> and connects open wires with tolerance <closetoler>. <shape> should be a compound of faces. Tolerance <closetoler> should be greater than tolerance <sewtoler> used for initializing sewing analyzer, otherwise connection of open wires is not performed. More...
 
 ShapeFix_FreeBounds (const TopoDS_Shape &shape, const Standard_Real closetoler, const Standard_Boolean splitclosed, const Standard_Boolean splitopen)
 Builds actual free bounds of the <shape> and connects open wires with tolerance <closetoler>. <shape> should be a compound of shells. More...
 
const TopoDS_CompoundGetClosedWires () const
 Returns compound of closed wires out of free edges. More...
 
const TopoDS_CompoundGetOpenWires () const
 Returns compound of open wires out of free edges. More...
 
const TopoDS_ShapeGetShape () const
 Returns modified source shape. More...
 

Detailed Description

This class is intended to output free bounds of the shape (free bounds are the wires consisting of edges referenced by the only face). For building free bounds it uses ShapeAnalysis_FreeBounds class. This class complements it with the feature to reduce the number of open wires. This reduction is performed with help of connecting several adjacent open wires one to another what can lead to:

  1. making an open wire with greater length out of several open wires
  2. making closed wire out of several open wires

The connecting open wires is performed with a user-given tolerance.

When connecting several open wires into one wire their previous end vertices are replaced with new connecting vertices. After that all the edges in the shape sharing previous vertices inside the shape are updated with new vertices. Thus source shape can be modified.

Since interface of this class is the same as one of ShapeAnalysis_FreeBounds refer to its CDL for details.

Constructor & Destructor Documentation

ShapeFix_FreeBounds::ShapeFix_FreeBounds ( )

Empty constructor.

ShapeFix_FreeBounds::ShapeFix_FreeBounds ( const TopoDS_Shape shape,
const Standard_Real  sewtoler,
const Standard_Real  closetoler,
const Standard_Boolean  splitclosed,
const Standard_Boolean  splitopen 
)

Builds forecasting free bounds of the <shape> and connects open wires with tolerance <closetoler>. <shape> should be a compound of faces. Tolerance <closetoler> should be greater than tolerance <sewtoler> used for initializing sewing analyzer, otherwise connection of open wires is not performed.

ShapeFix_FreeBounds::ShapeFix_FreeBounds ( const TopoDS_Shape shape,
const Standard_Real  closetoler,
const Standard_Boolean  splitclosed,
const Standard_Boolean  splitopen 
)

Builds actual free bounds of the <shape> and connects open wires with tolerance <closetoler>. <shape> should be a compound of shells.

Member Function Documentation

const TopoDS_Compound& ShapeFix_FreeBounds::GetClosedWires ( ) const

Returns compound of closed wires out of free edges.

const TopoDS_Compound& ShapeFix_FreeBounds::GetOpenWires ( ) const

Returns compound of open wires out of free edges.

const TopoDS_Shape& ShapeFix_FreeBounds::GetShape ( ) const

Returns modified source shape.


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