Interface for curves creation. More...
import "GEOM_Gen.idl";
Public Member Functions | |
GEOM_Object | MakeCirclePntVecR (in GEOM_Object thePnt, in GEOM_Object theVec, in double theR) |
Create a circle with given center, normal vector and radius. | |
GEOM_Object | MakeCircleThreePnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2, in GEOM_Object thePnt3) |
Create a circle, passing through three given points. | |
GEOM_Object | MakeCircleCenter2Pnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2, in GEOM_Object thePnt3) |
Create a circle with given center, with a radius equals the distance from center to Point1 and on a plane defined by all of three points. | |
GEOM_Object | MakeEllipse (in GEOM_Object thePnt, in GEOM_Object theVec, in double theRMajor, in double theRMinor) |
Create an ellipse with given center, normal vector and radiuses. | |
GEOM_Object | MakeEllipseVec (in GEOM_Object thePnt, in GEOM_Object theVec, in double theRMajor, in double theRMinor, in GEOM_Object theVecMaj) |
Create an ellipse with given center, normal vector, main axis vector and radiuses. | |
GEOM_Object | MakeArc (in GEOM_Object thePnt1, in GEOM_Object thePnt2, in GEOM_Object thePnt3) |
Create an arc of circle, passing through three given points. | |
GEOM_Object | MakeArcCenter (in GEOM_Object theCenter, in GEOM_Object thePnt1, in GEOM_Object thePnt2, in boolean theSense) |
Create an arc of circle of center C from one point to another. | |
GEOM_Object | MakeArcOfEllipse (in GEOM_Object theCenter, in GEOM_Object thePnt1, in GEOM_Object thePnt2) |
Create an arc of ellipse of center C and two points P1 P2. | |
GEOM_Object | MakePolyline (in ListOfGO thePoints, in boolean theIsClosed) |
Create a polyline on the set of points. | |
GEOM_Object | MakeSplineBezier (in ListOfGO thePoints, in boolean theIsClosed) |
Create bezier curve on the set of points. | |
GEOM_Object | MakeSplineInterpolation (in ListOfGO thePoints, in boolean theIsClosed, in boolean theDoReordering) |
Create B-Spline curve on the set of points. | |
GEOM_Object | MakeCurveParametric (in string thexExpr, in string theyExpr, in string thezExpr, in double theParamMin, in double theParamMax, in double theParamStep, in curve_type theCurveType) |
Creates a curve using the parametric definition of the basic points. | |
GEOM_Object | MakeCurveParametricNew (in string thexExpr, in string theyExpr, in string thezExpr, in double theParamMin, in double theParamMax, in long theParamNbStep, in curve_type theCurveType) |
Creates a curve using the parametric definition of the basic points. | |
GEOM_Object | MakeSketcher (in string theCommand, in ListOfDouble theWorkingPlane) |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument. | |
GEOM_Object | Make3DSketcher (in ListOfDouble theCoordinates) |
Create a 3D sketcher, following the numerical description, passed through points created by theCoordinates argument. | |
GEOM_Object | MakeSketcherOnPlane (in string theCommand, in GEOM_Object theWorkingPlane) |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument. | |
boolean | IsDone () |
To know, if the operation was successfully performed. | |
void | SetErrorCode (in string theErrorID) |
Set the operation error code. | |
string | GetErrorCode () |
Get the operation error code. | |
long | GetStudyID () |
Get ID of study, where the operation is defined. | |
void | StartOperation () |
Opens a new transaction. | |
void | FinishOperation () |
Closes the previously opened trasaction. | |
void | AbortOperation () |
Aborts the previously opened transaction. |
Interface for curves creation.
Polyline, Circle, Spline (Bezier and Interpolation)
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeCirclePntVecR | ( | in GEOM_Object | thePnt, |
in GEOM_Object | theVec, | ||
in double | theR | ||
) |
Create a circle with given center, normal vector and radius.
thePnt | Circle center. |
theVec | Vector, normal to the plane of the circle. |
theR | Circle radius. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeCircleThreePnt | ( | in GEOM_Object | thePnt1, |
in GEOM_Object | thePnt2, | ||
in GEOM_Object | thePnt3 | ||
) |
Create a circle, passing through three given points.
thePnt1,thePnt2,thePnt3 | Points, defining the circle. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeCircleCenter2Pnt | ( | in GEOM_Object | thePnt1, |
in GEOM_Object | thePnt2, | ||
in GEOM_Object | thePnt3 | ||
) |
Create a circle with given center, with a radius equals the distance from center to Point1 and on a plane defined by all of three points.
thePnt1,thePnt2,thePnt3 | Points, defining the circle. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeEllipse | ( | in GEOM_Object | thePnt, |
in GEOM_Object | theVec, | ||
in double | theRMajor, | ||
in double | theRMinor | ||
) |
Create an ellipse with given center, normal vector and radiuses.
thePnt | Ellipse center. |
theVec | Vector, normal to the plane of the ellipse. |
theRMajor | Major ellipse radius. |
theRMinor | Minor ellipse radius. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeEllipseVec | ( | in GEOM_Object | thePnt, |
in GEOM_Object | theVec, | ||
in double | theRMajor, | ||
in double | theRMinor, | ||
in GEOM_Object | theVecMaj | ||
) |
Create an ellipse with given center, normal vector, main axis vector and radiuses.
thePnt | Ellipse center. |
theVec | Vector, normal to the plane of the ellipse. |
theRMajor | Major ellipse radius. |
theRMinor | Minor ellipse radius. |
theVecMaj | Vector, direction of the ellipse's main axis. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeArc | ( | in GEOM_Object | thePnt1, |
in GEOM_Object | thePnt2, | ||
in GEOM_Object | thePnt3 | ||
) |
Create an arc of circle, passing through three given points.
thePnt1 | Start point of the arc. |
thePnt2 | Middle point of the arc. |
thePnt3 | End point of the arc. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeArcCenter | ( | in GEOM_Object | theCenter, |
in GEOM_Object | thePnt1, | ||
in GEOM_Object | thePnt2, | ||
in boolean | theSense | ||
) |
Create an arc of circle of center C from one point to another.
theCenter | Center point of the arc. |
thePnt1 | Start point of the arc. |
thePnt2 | End point of the arc. |
theSense | Orientation of the arc |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeArcOfEllipse | ( | in GEOM_Object | theCenter, |
in GEOM_Object | thePnt1, | ||
in GEOM_Object | thePnt2 | ||
) |
Create an arc of ellipse of center C and two points P1 P2.
theCenter | Center point of the arc. |
thePnt1 | Major radius is distance from center to Pnt1. |
thePnt2 | define a plane and Minor radius as a shortest distance from Pnt2 to vector Center->Pnt1. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakePolyline | ( | in ListOfGO | thePoints, |
in boolean | theIsClosed | ||
) |
Create a polyline on the set of points.
thePoints | Sequence of points for the polyline. |
theIsClosed | If TRUE, build a closed wire. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeSplineBezier | ( | in ListOfGO | thePoints, |
in boolean | theIsClosed | ||
) |
Create bezier curve on the set of points.
thePoints | Sequence of points for the bezier curve. |
theIsClosed | If TRUE, build a closed curve. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeSplineInterpolation | ( | in ListOfGO | thePoints, |
in boolean | theIsClosed, | ||
in boolean | theDoReordering | ||
) |
Create B-Spline curve on the set of points.
thePoints | Sequence of points for the B-Spline curve. |
theIsClosed | If TRUE, build a closed curve. |
theDoReordering | If TRUE, the algo does not follow the order of thePoints but searches for the closest vertex. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeCurveParametric | ( | in string | thexExpr, |
in string | theyExpr, | ||
in string | thezExpr, | ||
in double | theParamMin, | ||
in double | theParamMax, | ||
in double | theParamStep, | ||
in curve_type | theCurveType | ||
) |
Creates a curve using the parametric definition of the basic points.
thexExpr | parametric equation of the coordinates X. |
theyExpr | parametric equation of the coordinates Y. |
thezExpr | parametric equation of the coordinates Z. |
theParamMin | the minimal value of the parameter. |
theParamMax | the maximum value of the parameter. |
theParamStep | the step of the parameter. |
theCurveType | the type of the curve. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeCurveParametricNew | ( | in string | thexExpr, |
in string | theyExpr, | ||
in string | thezExpr, | ||
in double | theParamMin, | ||
in double | theParamMax, | ||
in long | theParamNbStep, | ||
in curve_type | theCurveType | ||
) |
Creates a curve using the parametric definition of the basic points.
thexExpr | parametric equation of the coordinates X. |
theyExpr | parametric equation of the coordinates Y. |
thezExpr | parametric equation of the coordinates Z. |
theParamMin | the minimal value of the parameter. |
theParamMax | the maximum value of the parameter. |
theParamNbStep | the number of steps of the parameter discretization. |
theCurveType | the type of the curve. |
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeSketcher | ( | in string | theCommand, |
in ListOfDouble | theWorkingPlane | ||
) |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument.
Edges of the resulting wire or face will be arcs of circles and/or linear segments.
Format of the description string have to be the following:
"Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"
Where:
theCommand | String, defining the sketcher in local coordinates of the working plane. |
theWorkingPlane | Nine double values, defining origin, OZ and OX directions of the working plane. |
GEOM_Object GEOM::GEOM_ICurvesOperations::Make3DSketcher | ( | in ListOfDouble | theCoordinates | ) |
Create a 3D sketcher, following the numerical description, passed through points created by theCoordinates argument.
Format of the description string have to be the following:
"Make3DSketcher[x1, y1, z1, x2, y2, z2, ..., xN, yN, zN]"
GEOM_Object GEOM::GEOM_ICurvesOperations::MakeSketcherOnPlane | ( | in string | theCommand, |
in GEOM_Object | theWorkingPlane | ||
) |
Create a sketcher (wire or face), following the textual description, passed through theCommand argument.
For format of the description string see the previous method.
theCommand | String, defining the sketcher in local coordinates of the working plane. |
theWorkingPlane | Planar Face or LCS(Marker) of the working plane. |
|
inherited |
To know, if the operation was successfully performed.
|
inherited |
Set the operation error code.
theErrorID | is a string describing the error occured |
|
inherited |
Get the operation error code.
|
inherited |
Get ID of study, where the operation is defined.
|
inherited |
Opens a new transaction.
|
inherited |
Closes the previously opened trasaction.
|
inherited |
Aborts the previously opened transaction.