All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

AdvancedTopologicalOpe Class CATTopologicalFill

Mathematics.CATCGMVirtual
  |
  +---GeometricObjects.CATCGMOperator
    |
    +---NewTopologicalObjects.CATTopOperator
      |
      +---CATTopologicalFill
 

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


public class CATTopologicalFill

Class defining the topological operator that fills a space defined by a set of wires.

The wires must define a closed area. Continuity criteria can be precised: G0, G1 if the supporting surfaces of the wire are given, G0 otherwise. The supporting surfaces must be coherent to allow the operator to compute a G1 continuity.
The CATTopologicalFill operator creates the resulting filling skin body separately from the inputs: the wires of the input bodies are not used to define the topology of the resulting fill body.


Constructor and Destructor Index


o ~CATTopologicalFill()

Method Index


o Check()
Checks the computation.
o GetCenterPoint(CATVertex&)
Returns the center point inside the hole to fill.
o GetFillType()
Returns the fill type.
o GetG0MaxAccuracy()
Returns the maximum admissible continuity gap on the result.
o GetG0MaxDeviation()
Returns the maximum continuity gap on the result.
o GetG1MaxDeviation()
Returns the maximum tangency gap (in radians) on the result.
o GetResult()
Returns the result of this operator.
o ResetCenterPoint()
Lets the algorithm define the default center point.
o Run()
Runs this operator (ADVANCED mode).
o SetCenterPoint(CATVertex&)
Defines the center point inside the hole to fill (ADVANCED mode).
o SetFlatFaceMode(CATLONG32)
Activates the flat face mode.
o SetInputValidationMode(CATLONG32)
Checks whether holes must be detected in the input wires (ADVANCED mode).
o SetTransitionContinuity(CATLONG32,CATLONG32)
Defines the continuity criteria to take into account for a given wire (ADVANCED mode).

Enumerated Type Index


o CATFillType
Defines the fill type.

Constructor and Destructor


o ~CATTopologicalFill
public virtual ~CATTopologicalFill()

Methods


o Check
public virtual CATLONG32 Check()=0
Checks the computation.
Returns:
0 if the computation occured without problem.
o GetCenterPoint
public virtual void GetCenterPoint(CATVertex& ioCenterPoint)=0
Returns the center point inside the hole to fill.
The fill algorithm fills the hole with four sided faces. In case of not four sided input holes, the algorithm defines a center point allowing it to create four sided faces. This point can also be defined by the SetCenterPoint method (ADVANCED mode).
Parameters:
ioCenterPoint
The vertex representing the center point.
o GetFillType
public virtual CATFillType GetFillType()=0
Returns the fill type.
Returns:
The fill type.
Useful in automatic mode to know which solution was chosen.
o GetG0MaxAccuracy
public virtual double GetG0MaxAccuracy()=0
Returns the maximum admissible continuity gap on the result. This value is computed by taking into account some incompatibilities in the input model Hence, it can be larger than the factory resolution.
o GetG0MaxDeviation
public virtual double GetG0MaxDeviation()=0
Returns the maximum continuity gap on the result.
o GetG1MaxDeviation
public virtual CATAngle GetG1MaxDeviation()=0
Returns the maximum tangency gap (in radians) on the result.
o GetResult
public virtual CATBody * GetResult()=0
Returns the result of this operator.
Returns:
The pointer to the created body. You must delete it with the CATICGMContainer.Remove method if you do not want to keep it. Note: in case of multiple Runs, the operator deletes the intermediate bodies.
o ResetCenterPoint
public virtual void ResetCenterPoint()=0
Lets the algorithm define the default center point.
o Run
public virtual int Run()=0
Runs this operator (ADVANCED mode).
It is possible to Run the operator several times, with different parameters. After each Run, a new body is created.
o SetCenterPoint
public virtual void SetCenterPoint(CATVertex& iCenterPoint)=0
Defines the center point inside the hole to fill (ADVANCED mode).
The fill algorithm fills the hole with four sided faces. In case of not four sided input holes, this method defines a center point allowing the algorithm to create four sided faces.
Parameters:
iCenterPoint
The vertex representing the center point.
o SetFlatFaceMode
public virtual void SetFlatFaceMode( const CATLONG32 iMode= 1)=0
Activates the flat face mode.
Parameters:
iMode
The flat mode.
Legal values:
1
to activate the flat face mode: in this case, it creates a planar face if the hole to fill is flat.
0
to deactivate the flat face mode: this is the default mode.
o SetInputValidationMode
public virtual void SetInputValidationMode( const CATLONG32 iMode= 1)=0
Checks whether holes must be detected in the input wires (ADVANCED mode).
Parameters:
iMode
The validation mode.
Legal values: 1 to check the inputs, 0 for no check (default mode).
o SetTransitionContinuity
public virtual void SetTransitionContinuity( const CATLONG32 iWhichWire,
const CATLONG32 iTransitionContinuity)=0
Defines the continuity criteria to take into account for a given wire (ADVANCED mode).
Parameters:
iWhichWire
The rank (beginning at 1) of the input wire.
iTransitionContinuity
The continuity criteria
Legal values: 0 for G0 continuity (default mode), 1 for G1 continuity.

Enumerated Types


o CATFillType
enum CATFillType {
  analytic,
  power,
  automatic,
  powerfill,
  powerplane,
  autofillnosingular,
  autofill_level1,
  autofill_level2
}
Defines the fill type.
Parameters:
analytic
The edges of the domain to fill are isoparametric curves of the final surfaces. The number of generated faces is depending on the number of wires. Use it for simple domain to fill, as rectangular area.
power
The area is filled with a single surface. This allows you to manage wires which describe a complex topology.
powerplane
The area is filled with a single surface which is obtained by deforming a plane.
automatic
Automatically determines the most suitable method according to the input topology.

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

Copyright © 2003, Dassault Systèmes. All rights reserved.