Open CASCADE Technology  7.6.0
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. More...
 
void Init (const TopoDS_Shape &S)
 Initialize by a Shape. More...
 
virtual ~ShapeUpgrade_ShapeDivide ()
 
void SetPrecision (const Standard_Real Prec)
 Defines the spatial precision used for splitting. More...
 
void SetMaxTolerance (const Standard_Real maxtol)
 Sets maximal allowed tolerance. More...
 
void SetMinTolerance (const Standard_Real mintol)
 Sets minimal allowed tolerance. More...
 
void SetSurfaceSegmentMode (const Standard_Boolean Segment)
 Purpose sets mode for trimming (segment) surface by wire UV bounds. More...
 
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. More...
 
TopoDS_Shape Result () const
 Gives the resulting Shape, or Null shape if not done. More...
 
Handle< ShapeBuild_ReShapeGetContext () const
 Returns context with all the modifications made during last call(s) to Perform() recorded. More...
 
void SetContext (const Handle< ShapeBuild_ReShape > &context)
 Sets context with recorded modifications to be applied during next call(s) to Perform(shape,Standard_False) More...
 
virtual void SetMsgRegistrator (const Handle< ShapeExtend_BasicMsgRegistrator > &msgreg)
 Sets message registrator. More...
 
Handle< ShapeExtend_BasicMsgRegistratorMsgRegistrator () const
 Returns message registrator. More...
 
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. More...
 
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. More...
 
void SetSplitFaceTool (const Handle< ShapeUpgrade_FaceDivide > &splitFaceTool)
 Sets the tool for splitting faces. More...
 
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. More...
 

Protected Member Functions

virtual Handle< ShapeUpgrade_FaceDivideGetSplitFaceTool () const
 Returns the tool for splitting faces. More...
 
virtual Message_Msg GetFaceMsg () const
 
virtual Message_Msg GetWireMsg () const
 
virtual Message_Msg GetEdgeMsg () const
 Returns a message decsribing modification of a shape. More...
 

Protected Attributes

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 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()

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 decsribing modification of a shape.

Reimplemented in ShapeUpgrade_ShapeConvertToBezier.

◆ GetFaceMsg()

virtual Message_Msg ShapeUpgrade_ShapeDivide::GetFaceMsg ( ) const
protectedvirtual

◆ GetSplitFaceTool()

virtual Handle< ShapeUpgrade_FaceDivide > ShapeUpgrade_ShapeDivide::GetSplitFaceTool ( ) const
protectedvirtual

Returns the tool for splitting faces.

Reimplemented in ShapeUpgrade_ShapeDivideContinuity, ShapeUpgrade_ShapeDivideArea, and ShapeUpgrade_ShapeConvertToBezier.

◆ GetWireMsg()

virtual Message_Msg ShapeUpgrade_ShapeDivide::GetWireMsg ( ) const
protectedvirtual

◆ Init()

void ShapeUpgrade_ShapeDivide::Init ( const TopoDS_Shape S)

Initialize by a Shape.

◆ MsgRegistrator()

Handle< ShapeExtend_BasicMsgRegistrator > ShapeUpgrade_ShapeDivide::MsgRegistrator ( ) const

Returns message registrator.

◆ Perform()

virtual Standard_Boolean ShapeUpgrade_ShapeDivide::Perform ( const Standard_Boolean  newContext = Standard_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 Handle< ShapeBuild_ReShape > &  context)

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

◆ SetEdgeMode()

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

◆ SetMaxTolerance()

void ShapeUpgrade_ShapeDivide::SetMaxTolerance ( const Standard_Real  maxtol)

Sets maximal allowed tolerance.

◆ SetMinTolerance()

void ShapeUpgrade_ShapeDivide::SetMinTolerance ( const Standard_Real  mintol)

Sets minimal allowed tolerance.

◆ SetMsgRegistrator()

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

Sets message registrator.

◆ SetPrecision()

void ShapeUpgrade_ShapeDivide::SetPrecision ( const Standard_Real  Prec)

Defines the spatial precision used for splitting.

◆ SetSplitFaceTool()

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

Sets the tool for splitting faces.

◆ SetSurfaceSegmentMode()

void ShapeUpgrade_ShapeDivide::SetSurfaceSegmentMode ( const Standard_Boolean  Segment)

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

◆ Status()

Standard_Boolean 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

Handle< ShapeBuild_ReShape > ShapeUpgrade_ShapeDivide::myContext
protected

◆ myEdgeMode

Standard_Integer ShapeUpgrade_ShapeDivide::myEdgeMode
protected

◆ myMaxTol

Standard_Real ShapeUpgrade_ShapeDivide::myMaxTol
protected

◆ myMinTol

Standard_Real ShapeUpgrade_ShapeDivide::myMinTol
protected

◆ myMsgReg

Handle< ShapeExtend_BasicMsgRegistrator > ShapeUpgrade_ShapeDivide::myMsgReg
protected

◆ myPrecision

Standard_Real ShapeUpgrade_ShapeDivide::myPrecision
protected

◆ myResult

TopoDS_Shape ShapeUpgrade_ShapeDivide::myResult
protected

◆ mySegmentMode

Standard_Boolean ShapeUpgrade_ShapeDivide::mySegmentMode
protected

◆ myShape

TopoDS_Shape ShapeUpgrade_ShapeDivide::myShape
protected

◆ myStatus

Standard_Integer ShapeUpgrade_ShapeDivide::myStatus
protected

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