Open CASCADE Technology 7.9.1
ShapeUpgrade_ShapeDivideArea Class Reference

Divides faces from sprcified shape by max area criterium. More...

#include <ShapeUpgrade_ShapeDivideArea.hxx>

Inheritance diagram for ShapeUpgrade_ShapeDivideArea:

Public Member Functions

 ShapeUpgrade_ShapeDivideArea ()
 ShapeUpgrade_ShapeDivideArea (const TopoDS_Shape &S)
 Initialize by a Shape.
Standard_RealMaxArea ()
 Set max area allowed for faces.
Standard_IntegerNbParts ()
 Set number of parts expected for the case of splitting by number.
void SetNumbersUVSplits (const Standard_Integer theNbUsplits, const Standard_Integer theNbVsplits)
 Set fixed numbers of splits in U and V directions. Only for "Splitting By Numbers" mode.
void SetSplittingByNumber (const Standard_Boolean theIsSplittingByNumber)
 Set splitting mode If the mode is "splitting by number", the face is splitted approximately into <myNbParts> parts, the parts are similar to squares in 2D.
Public Member Functions inherited from ShapeUpgrade_ShapeDivide
 ShapeUpgrade_ShapeDivide ()
 ShapeUpgrade_ShapeDivide (const TopoDS_Shape &S)
 Initialize by a Shape.
void Init (const TopoDS_Shape &S)
 Initialize by a Shape.
virtual ~ShapeUpgrade_ShapeDivide ()
void SetPrecision (const Standard_Real Prec)
 Defines the spatial precision used for splitting.
void SetMaxTolerance (const Standard_Real maxtol)
 Sets maximal allowed tolerance.
void SetMinTolerance (const Standard_Real mintol)
 Sets minimal allowed tolerance.
void SetSurfaceSegmentMode (const Standard_Boolean Segment)
 Purpose sets mode for trimming (segment) surface by wire UV bounds.
virtual Standard_Boolean Perform (const Standard_Boolean newContext=Standard_True)
 Performs splitting and computes the resulting shape If newContext is True (default), the internal context will be cleared at start, else previous substitutions will be acting.
TopoDS_Shape Result () const
 Gives the resulting Shape, or Null shape if not done.
Handle< ShapeBuild_ReShapeGetContext () const
 Returns context with all the modifications made during last call(s) to Perform() recorded.
void SetContext (const Handle< ShapeBuild_ReShape > &context)
 Sets context with recorded modifications to be applied during next call(s) to Perform(shape,Standard_False).
virtual void SetMsgRegistrator (const Handle< ShapeExtend_BasicMsgRegistrator > &msgreg)
 Sets message registrator.
Handle< ShapeExtend_BasicMsgRegistratorMsgRegistrator () const
 Returns message registrator.
void SendMsg (const TopoDS_Shape &shape, const Message_Msg &message, const Message_Gravity gravity=Message_Info) const
 Sends a message to be attached to the shape. Calls corresponding message of message registrator.
Standard_Boolean Status (const ShapeExtend_Status status) const
 Queries the status of last call to Perform OK : no splitting was done (or no call to Perform) DONE1: some edges were split DONE2: surface was split FAIL1: some errors occurred.
void SetSplitFaceTool (const Handle< ShapeUpgrade_FaceDivide > &splitFaceTool)
 Sets the tool for splitting faces.
void SetEdgeMode (const Standard_Integer aEdgeMode)
 Sets mode for splitting 3d curves from edges. 0 - only curve 3d from free edges. 1 - only curve 3d from shared edges. 2 - all curve 3d.

Protected Member Functions

virtual Handle< ShapeUpgrade_FaceDivideGetSplitFaceTool () const override
 Returns the tool for splitting faces.
Protected Member Functions inherited from ShapeUpgrade_ShapeDivide
virtual Message_Msg GetFaceMsg () const
virtual Message_Msg GetWireMsg () const
virtual Message_Msg GetEdgeMsg () const
 Returns a message describing modification of a shape.

Additional Inherited Members

Protected Attributes inherited from ShapeUpgrade_ShapeDivide
Handle< ShapeBuild_ReShapemyContext
Handle< ShapeExtend_BasicMsgRegistratormyMsgReg
TopoDS_Shape myShape
TopoDS_Shape myResult
Standard_Real myPrecision
Standard_Real myMinTol
Standard_Real myMaxTol
Standard_Boolean mySegmentMode
Standard_Integer myStatus
Standard_Integer myEdgeMode

Detailed Description

Divides faces from sprcified shape by max area criterium.

Constructor & Destructor Documentation

◆ ShapeUpgrade_ShapeDivideArea() [1/2]

ShapeUpgrade_ShapeDivideArea::ShapeUpgrade_ShapeDivideArea ( )

◆ ShapeUpgrade_ShapeDivideArea() [2/2]

ShapeUpgrade_ShapeDivideArea::ShapeUpgrade_ShapeDivideArea ( const TopoDS_Shape & S)

Initialize by a Shape.

Member Function Documentation

◆ GetSplitFaceTool()

virtual Handle< ShapeUpgrade_FaceDivide > ShapeUpgrade_ShapeDivideArea::GetSplitFaceTool ( ) const
overrideprotectedvirtual

Returns the tool for splitting faces.

Reimplemented from ShapeUpgrade_ShapeDivide.

◆ MaxArea()

Standard_Real & ShapeUpgrade_ShapeDivideArea::MaxArea ( )

Set max area allowed for faces.

◆ NbParts()

Standard_Integer & ShapeUpgrade_ShapeDivideArea::NbParts ( )

Set number of parts expected for the case of splitting by number.

◆ SetNumbersUVSplits()

void ShapeUpgrade_ShapeDivideArea::SetNumbersUVSplits ( const Standard_Integer theNbUsplits,
const Standard_Integer theNbVsplits )

Set fixed numbers of splits in U and V directions. Only for "Splitting By Numbers" mode.

◆ SetSplittingByNumber()

void ShapeUpgrade_ShapeDivideArea::SetSplittingByNumber ( const Standard_Boolean theIsSplittingByNumber)

Set splitting mode If the mode is "splitting by number", the face is splitted approximately into <myNbParts> parts, the parts are similar to squares in 2D.


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