GMOperatorsInterfaces CATICGMHybDisconnect

Usage: you must use this class as is. You should never derive it.


public class CATICGMHybDisconnect

Class defining the operator that inserts vertices in a wire or skin body, or inserts edges in a skin body.

The disconnect operation completes if the cutting body is laid down on the body to be disconnected. The cutting body must have been created as lying on its support (as a point on curve or surface for example), otherwise it must be projected onto the body to be disconnected. The operator generates an exception if this condition is not fulfilled. When the cutting body is a 0D body immersed within a face but not laid down onto an edge, the body resulting from the Disconnect operation is the initial one, no vertex-in-face is created. When the cutting body is a 0D body laid down onto an edge, the resulting body does not contain any extra faces but vertices and edges are added.
This operator follows the general frame of all operators and satisfies the smart mechanism: the input bodies are not modified. A new resulting body is created, possibly sharing data with the input bodies.

See also:
See also:
See also:


Constructor and Destructor Index


o CATICGMHybDisconnect()
Constructor

Method Index


o GetCorrespondingPackNumber(CATCell*)
Returns the rank of a created cell.
o GetCorrespondingSide(CATCell*)
Returns the location of the created cell.
o GetDisconnectingCells(CATCell*,CATLISTP(CATCell)&)
Retrieve input disconnecting cells that lead to the construction of result cell.
o GetQueryMode()
Returns the state of the query mode.
o SetQueryMode(int)
Activates the query mode.
o SetTrackDisconnectingCells(CATBoolean)
Activates tracking of disconnecting cells.

Constructor and Destructor


o CATICGMHybDisconnect
public CATICGMHybDisconnect()
Constructor

Methods


o GetCorrespondingPackNumber
public virtual GetCorrespondingPackNumber( iCell)
Returns the rank of a created cell.
To be called after the Run method, if the query mode is activated.
Parameters:
iCell
The pointer to a created cell.
Returns:
The corresponding rank. It may happen that several cells are generated on the same side of the cutting object. If these cells are not directly connected, they are labelled by this method.
o GetCorrespondingSide
public virtual GetCorrespondingSide( iCell)
Returns the location of the created cell.
To be called after the Run method, if the query mode is activated.
Parameters:
iCell
The pointer to a created cell.
Returns:
The location of the cell with regards to the cutting body.
Legal values: 1 if it is at the left side, -1 if it is at the right side.
o GetDisconnectingCells
public virtual GetDisconnectingCells( iResultCell,
oDisconnectingCells)
Retrieve input disconnecting cells that lead to the construction of result cell. To be called after Run, only if SetTrackDisconnectingCells(TRUE) was called before Run.
Parameters:
iResultCell
If the disconnecting element is a wire and the body to disconnect is a shell, iResultCell must be an edge of the result body. If the disconnecting element is a vertex and the body to disconnect is a wire, iResultCell must be a vertex of the result body.
oDisconnectingCells
The output list. If the disconnecting element is a wire and the body to disconnect is a shell, oDisconnectingCells will contain all edges of the input disconnecting body that lead to the construction of iResultCell. If the disconnecting element is a vertex and the body to disconnect is a wire, oDisconnectingCells will contain all vertices of the input disconnecting body that lead to the construction of iResultCell
o GetQueryMode
public virtual GetQueryMode()
Returns the state of the query mode.
Returns:
The activation of the query mode.
Legal values: 1 for rank + location activated (default value), 2 for rank activated, 0 for deactivated.
o SetQueryMode
public virtual SetQueryMode( iQueryMode= 1)
Activates the query mode.
To be called before the Run method.
Parameters:
iQueryMode
The activation of the query mode.
Legal values: 1 for rank + location activated (default value), 2 for rank activated, 0 for deactivated. The deactivation gives better performance.
o SetTrackDisconnectingCells
public virtual SetTrackDisconnectingCells( iTrackDisconnectingCells)
Activates tracking of disconnecting cells. Before calling Run, must be set to TRUE to be able to call GetDisconnectingCells after Run.
Parameters:
iTrackDisconnectingCells

Legal values: TRUE to activate tracking of disconnecting cells, FALSE to deactivate tracking of disconnecting cells (default value).

This object is included in the file: CATICGMHybDisconnect.h
If needed, your Imakefile.mk should include the module: CATGMOperatorsInterfaces

Copyright © 1999-2015, Dassault Systèmes. All rights reserved.