Factory2D (Object)

Interface to the factory for 2D objects.

Methods


Func CreateCircle( iCenterX, iCenterY, iRadius, iStartParam, iEndParam) As
Creates and returns a 2D circle arc.
Parameters:
iCenterX
The X coordinate of the circle center
iCenterY
The Y coordinate of the circle center
iRadius
The radius of the circle
iStartParam
The beginning parameter of the circle.
This parameter is an angle value between 0 included and 2PI excluded. Parameter values are computed from the axis horizontal direction in the trigonometrical direction.
iEndParam
The end parameter of the circle.
This parameter may take any value between iStartParam excluded and 4PI included.
Func CreateClosedCircle( iCenterX, iCenterY, iRadius) As
Creates and returns a closed 2D circle.
Parameters:
iCenterX
The X coordinate of the circle center
iCenterY
The Y coordinate of the circle center
iRadius
The radius of the circle
Func CreateClosedEllipse( iCenterX, iCenterY, iMajorX, iMajorY, iMajorRadius, iMinorRadius) As
Creates and returns a closed 2D ellipse.
Parameters:
iCenterX
The X coordinate of the ellipse center
iCenterY
The Y coordinate of the ellipse center
iMajorX
The X component of the major axis direction
iMajorY
The Y component of the Major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
Func CreateControlPoint( iX, iY) As
Creates and returns a 2D spline control point.
Parameters:
iX
The X coordinate of point to create
iY
The Y coordinate of point to create
Func CreateEllipse( iCenterX, iCenterY, iMajorX, iMajorY, iMajorRadius, iMinorRadius, iStartParam, iEndParam) As
Creates and returns a 2D ellipse arc.
Parameters:
iCenterX
The X coordinate of the ellipse center
iCenterY
The Y coordinate of the ellipse center
iMajorX
The X component of the major axis direction
iMajorY
The Y component of the major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
iStartParam
The beginning parameter of the ellipse.
This parameter is an angle value between 0 included and 2PI excluded. Parameter values are computed from the major axis direction in the trigonometrical direction.
iEndParam
The end parameter of the ellipse.
This parameter may take any value between iStartParam excluded and 4PI included.
Func CreateHyperbola( iCenterX, iCenterY, iAxisX, iAxisY, iMajorRadius, iMinorRadius) As
Creates and returns a hyperbola.
Parameters:
iCenterX
The X coordinate of the hyperbola center
iCenterY
The Y coordinate of the hyperbola center
iAxisX
The X coordinate of the major axis direction
iAxisY
The Y coordinate of the major axis direction
iMajorRadius
The length of the major axis
iMinorRadius
The length of the minor axis
Func CreateIntersection( iGeometry) As
Creates and returns the intersection of an object with the sketch.
Parameters:
iGeometry
The object to intersect with the sketch
Func CreateIntersections( iGeometry) As
Creates and returns the possible intersections of an object with the sketch.
Parameters:
iGeometry
The object to intersect with the sketch
Func CreateLine( iX1, iY1, iX2, iY2) As
Creates and returns a 2D line.
Parameters:
iX1
The X coordinate of line first extremity
iY1
The Y coordinate of line first extremity
iX2
The X coordinate of line second extremity
iY2
The Y coordinate of line second extremity
Func CreateLineFromVector( iX1, iY1, iUX, iUY) As
Creates and returns a 2D line.
Parameters:
iX1
The X coordinate of the line origin
iY1
The Y coordinate of the line origin
iUX
The X component of the line vector
iUY
The Y component of the line vector
Func CreateParabola( iCenterX, iCenterY, iAxisX, iAxisY, iFocalDistance) As
Creates and returns a parabola.
Parameters:
iCenterX
The X coordinate of the parabola center
iCenterY
The Y coordinate of the parabola center
iAxisX
The X coordinate of the major axis direction
iAxisY
The Y coordinate of the major axis direction
iFocalDistance
The parabola focal distance
Func CreatePoint( iX, iY) As
Creates and returns a 2D point.
Parameters:
iX
The X coordinate of point to create
iY
The Y coordinate of point to create
Func CreateProjection( iGeometry) As
Creates and returns the projection of an object on the sketch.
Parameters:
iGeometry
The object to project on the sketch
Func CreateProjections( iGeometry) As
Creates and returns the possible projections of an object on the sketch.
Parameters:
iGeometry
The object to project on the sketch
Func CreateSpline( iPoles) As
Creates and returns a 2D b-spline.
Parameters:
iPoles
An array of CATIAPoint2D forming the poles of the b-spline.