Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
ShapeUpgrade_ShapeDivide Class Reference

Divides a all faces in shell with given criteria Shell. More...

#include <ShapeUpgrade_ShapeDivide.hxx>

Inheritance diagram for ShapeUpgrade_ShapeDivide:
Inheritance graph
[legend]

Public Member Functions

 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 double Prec)
 Defines the spatial precision used for splitting.
 
void SetMaxTolerance (const double maxtol)
 Sets maximal allowed tolerance.
 
void SetMinTolerance (const double mintol)
 Sets minimal allowed tolerance.
 
void SetSurfaceSegmentMode (const bool Segment)
 Purpose sets mode for trimming (segment) surface by wire UV bounds.
 
virtual bool Perform (const bool newContext=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.
 
occ::handle< ShapeBuild_ReShapeGetContext () const
 Returns context with all the modifications made during last call(s) to Perform() recorded.
 
void SetContext (const occ::handle< ShapeBuild_ReShape > &context)
 Sets context with recorded modifications to be applied during next call(s) to Perform(shape,false)
 
virtual void SetMsgRegistrator (const occ::handle< ShapeExtend_BasicMsgRegistrator > &msgreg)
 Sets message registrator.
 
occ::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.
 
bool 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 occ::handle< ShapeUpgrade_FaceDivide > &splitFaceTool)
 Sets the tool for splitting faces.
 
void SetEdgeMode (const int 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 occ::handle< ShapeUpgrade_FaceDivideGetSplitFaceTool () const
 Returns the tool for splitting faces.
 
virtual Message_Msg GetFaceMsg () const
 
virtual Message_Msg GetWireMsg () const
 
virtual Message_Msg GetEdgeMsg () const
 Returns a message describing modification of a shape.
 

Protected Attributes

occ::handle< ShapeBuild_ReShapemyContext
 
occ::handle< ShapeExtend_BasicMsgRegistratormyMsgReg
 
TopoDS_Shape myShape
 
TopoDS_Shape myResult
 
double myPrecision
 
double myMinTol
 
double myMaxTol
 
bool mySegmentMode
 
int myStatus
 
int myEdgeMode
 

Detailed Description

Divides a all faces in shell with given criteria Shell.

Constructor & Destructor Documentation

◆ ShapeUpgrade_ShapeDivide() [1/2]

ShapeUpgrade_ShapeDivide::ShapeUpgrade_ShapeDivide ( )

◆ ShapeUpgrade_ShapeDivide() [2/2]

ShapeUpgrade_ShapeDivide::ShapeUpgrade_ShapeDivide ( const TopoDS_Shape & S)

Initialize by a Shape.

◆ ~ShapeUpgrade_ShapeDivide()

virtual ShapeUpgrade_ShapeDivide::~ShapeUpgrade_ShapeDivide ( )
virtual

Member Function Documentation

◆ GetContext()

occ::handle< ShapeBuild_ReShape > ShapeUpgrade_ShapeDivide::GetContext ( ) const

Returns context with all the modifications made during last call(s) to Perform() recorded.

◆ GetEdgeMsg()

virtual Message_Msg ShapeUpgrade_ShapeDivide::GetEdgeMsg ( ) const
protectedvirtual

Returns a message describing modification of a shape.

Reimplemented in ShapeUpgrade_ShapeConvertToBezier.

◆ GetFaceMsg()

virtual Message_Msg ShapeUpgrade_ShapeDivide::GetFaceMsg ( ) const
protectedvirtual

◆ GetSplitFaceTool()

virtual occ::handle< ShapeUpgrade_FaceDivide > ShapeUpgrade_ShapeDivide::GetSplitFaceTool ( ) const
protectedvirtual

Returns the tool for splitting faces.

Reimplemented in ShapeUpgrade_ShapeConvertToBezier, ShapeUpgrade_ShapeDivideArea, and ShapeUpgrade_ShapeDivideContinuity.

◆ GetWireMsg()

virtual Message_Msg ShapeUpgrade_ShapeDivide::GetWireMsg ( ) const
protectedvirtual

◆ Init()

void ShapeUpgrade_ShapeDivide::Init ( const TopoDS_Shape & S)

Initialize by a Shape.

◆ MsgRegistrator()

occ::handle< ShapeExtend_BasicMsgRegistrator > ShapeUpgrade_ShapeDivide::MsgRegistrator ( ) const

Returns message registrator.

◆ Perform()

virtual bool ShapeUpgrade_ShapeDivide::Perform ( const bool newContext = true)
virtual

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.

Reimplemented in ShapeUpgrade_ShapeConvertToBezier.

◆ Result()

TopoDS_Shape ShapeUpgrade_ShapeDivide::Result ( ) const

Gives the resulting Shape, or Null shape if not done.

◆ SendMsg()

void ShapeUpgrade_ShapeDivide::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.

◆ SetContext()

void ShapeUpgrade_ShapeDivide::SetContext ( const occ::handle< ShapeBuild_ReShape > & context)

Sets context with recorded modifications to be applied during next call(s) to Perform(shape,false)

◆ SetEdgeMode()

void ShapeUpgrade_ShapeDivide::SetEdgeMode ( const int 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.

◆ SetMaxTolerance()

void ShapeUpgrade_ShapeDivide::SetMaxTolerance ( const double maxtol)

Sets maximal allowed tolerance.

◆ SetMinTolerance()

void ShapeUpgrade_ShapeDivide::SetMinTolerance ( const double mintol)

Sets minimal allowed tolerance.

◆ SetMsgRegistrator()

virtual void ShapeUpgrade_ShapeDivide::SetMsgRegistrator ( const occ::handle< ShapeExtend_BasicMsgRegistrator > & msgreg)
virtual

Sets message registrator.

◆ SetPrecision()

void ShapeUpgrade_ShapeDivide::SetPrecision ( const double Prec)

Defines the spatial precision used for splitting.

◆ SetSplitFaceTool()

void ShapeUpgrade_ShapeDivide::SetSplitFaceTool ( const occ::handle< ShapeUpgrade_FaceDivide > & splitFaceTool)

Sets the tool for splitting faces.

◆ SetSurfaceSegmentMode()

void ShapeUpgrade_ShapeDivide::SetSurfaceSegmentMode ( const bool Segment)

Purpose sets mode for trimming (segment) surface by wire UV bounds.

◆ Status()

bool ShapeUpgrade_ShapeDivide::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.

Field Documentation

◆ myContext

occ::handle<ShapeBuild_ReShape> ShapeUpgrade_ShapeDivide::myContext
protected

◆ myEdgeMode

int ShapeUpgrade_ShapeDivide::myEdgeMode
protected

◆ myMaxTol

double ShapeUpgrade_ShapeDivide::myMaxTol
protected

◆ myMinTol

double ShapeUpgrade_ShapeDivide::myMinTol
protected

◆ myMsgReg

occ::handle<ShapeExtend_BasicMsgRegistrator> ShapeUpgrade_ShapeDivide::myMsgReg
protected

◆ myPrecision

double ShapeUpgrade_ShapeDivide::myPrecision
protected

◆ myResult

TopoDS_Shape ShapeUpgrade_ShapeDivide::myResult
protected

◆ mySegmentMode

bool ShapeUpgrade_ShapeDivide::mySegmentMode
protected

◆ myShape

TopoDS_Shape ShapeUpgrade_ShapeDivide::myShape
protected

◆ myStatus

int ShapeUpgrade_ShapeDivide::myStatus
protected

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