Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
LocOpe_SplitDrafts Class Reference

This class provides a tool to realize the following operations on a shape: More...

#include <LocOpe_SplitDrafts.hxx>

Public Member Functions

 LocOpe_SplitDrafts ()=default
 Empty constructor.
 
 LocOpe_SplitDrafts (const TopoDS_Shape &S)
 Creates the algorithm on the shape .
 
void Init (const TopoDS_Shape &S)
 Initializes the algorithm with the shape .
 
void Perform (const TopoDS_Face &F, const TopoDS_Wire &W, const gp_Dir &Extractg, const gp_Pln &NPlg, const double Angleg, const gp_Dir &Extractd, const gp_Pln &NPld, const double Angled, const bool ModifyLeft=true, const bool ModifyRight=true)
 Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on both parts of the wire. <Extractg>, <Nplg>, <Angleg> define the arguments for the left part of the wire. <Extractd>, <Npld>, <Angled> define the arguments for the right part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle. If <ModifyLeft> is set to <false>, no draft angle is applied to the left part of the wire. If <ModifyRight> is set to <false>,no draft angle is applied to the right part of the wire.
 
void Perform (const TopoDS_Face &F, const TopoDS_Wire &W, const gp_Dir &Extract, const gp_Pln &NPl, const double Angle)
 Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on the left part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle.
 
bool IsDone () const
 Returns <true> if the modification has been successfully performed.
 
const TopoDS_ShapeOriginalShape () const
 
const TopoDS_ShapeShape () const
 Returns the modified shape.
 
const NCollection_List< TopoDS_Shape > & ShapesFromShape (const TopoDS_Shape &S) const
 Manages the descendant shapes.
 

Detailed Description

This class provides a tool to realize the following operations on a shape:

Constructor & Destructor Documentation

◆ LocOpe_SplitDrafts() [1/2]

LocOpe_SplitDrafts::LocOpe_SplitDrafts ( )
default

Empty constructor.

◆ LocOpe_SplitDrafts() [2/2]

LocOpe_SplitDrafts::LocOpe_SplitDrafts ( const TopoDS_Shape & S)
inline

Creates the algorithm on the shape .

Member Function Documentation

◆ Init()

void LocOpe_SplitDrafts::Init ( const TopoDS_Shape & S)

Initializes the algorithm with the shape .

◆ IsDone()

bool LocOpe_SplitDrafts::IsDone ( ) const
inline

Returns <true> if the modification has been successfully performed.

◆ OriginalShape()

const TopoDS_Shape & LocOpe_SplitDrafts::OriginalShape ( ) const
inline

◆ Perform() [1/2]

void LocOpe_SplitDrafts::Perform ( const TopoDS_Face & F,
const TopoDS_Wire & W,
const gp_Dir & Extract,
const gp_Pln & NPl,
const double Angle )

Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on the left part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle.

◆ Perform() [2/2]

void LocOpe_SplitDrafts::Perform ( const TopoDS_Face & F,
const TopoDS_Wire & W,
const gp_Dir & Extractg,
const gp_Pln & NPlg,
const double Angleg,
const gp_Dir & Extractd,
const gp_Pln & NPld,
const double Angled,
const bool ModifyLeft = true,
const bool ModifyRight = true )

Splits the face <F> of the former given shape with the wire <W>. The wire is assumed to lie on the face. Puts a draft angle on both parts of the wire. <Extractg>, <Nplg>, <Angleg> define the arguments for the left part of the wire. <Extractd>, <Npld>, <Angled> define the arguments for the right part of the wire. The draft angle is measured with the direction <Extract>. <Npl> defines the neutral plane (points belonging to the neutral plane are not modified). <Angle> is the value of the draft angle. If <ModifyLeft> is set to <false>, no draft angle is applied to the left part of the wire. If <ModifyRight> is set to <false>,no draft angle is applied to the right part of the wire.

◆ Shape()

const TopoDS_Shape & LocOpe_SplitDrafts::Shape ( ) const

Returns the modified shape.

◆ ShapesFromShape()

const NCollection_List< TopoDS_Shape > & LocOpe_SplitDrafts::ShapesFromShape ( const TopoDS_Shape & S) const

Manages the descendant shapes.


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