Plane shape management.
More...
|
| | GO2SPlane (Number no=MAXPLA) |
| | Default constructor.
|
| |
|
GO2SEnum::GO2SError | Delete () override |
| | Delete the plane.
|
| |
| GO2SEnum::GO2SError | DevSetFrom1Point (GO2SXYZ geomRef, Boolean bInterior, Boolean bYMM, Boolean bInvertY, GO2SEnum::GO2SAxis axis, Boolean newPlane=true) |
| |
| GO2SEnum::GO2SError | DevSetFrom2Points (GO2SXYZ geomRef1, GO2SXYZ geomRef2, Boolean bInterior, Boolean bYMM, Boolean bInvertY, GO2SEnum::GO2SAxis axis, Boolean newPlane=true) |
| |
| GO2SMatrix | GetMatrix () |
| |
| Number | GetNumber () |
| |
| GO2SEnum::GO2SError | SetFrom3Points (GO2SXYZ origin, GO2SXYZ xAxis, GO2SXYZ yAxis, Boolean newPlane=true) |
| |
| GO2SEnum::GO2SError | SetFromAngle (GO2SXYZ origin, Number angle, GO2SEnum::GO2SAxis axis, Boolean newPlane=true) |
| |
| GO2SEnum::GO2SError | SetFromMatrix (GO2SMatrix matrix, Boolean newPlane=true) |
| |
| GO2SEnum::GO2SError | ChangePlane (Number plane) |
| |
| GO2SGeometry | Copy () |
| |
| GO2SEnum::GO2SError | Delete () |
| |
| Array< GO2SXYZ > | Discretize (Number accuracy=0.01) |
| |
| Boolean | Equals (GO2SGeometry other) |
| |
| Array< GO2SXYZ > | GetBoundingBox () |
| |
| Number | GetColor () |
| |
| Array< GO2SEnum::GO2SParam > | GetEditableParams () |
| |
| Number | GetLayer () |
| |
| GO2SEnum::GO2SLineType | GetLineType () |
| |
| Number | GetLineWidth () |
| |
| String | GetName () |
| |
| Number | GetParam (GO2SEnum::GO2SParam param) |
| |
| GO2SGeometry | GetParent () |
| |
| Number | GetPlane () |
| |
| GO2SXYZ | GetPosition () |
| |
| Boolean | IsCircular () |
| |
| Boolean | IsLinear () |
| |
| Boolean | IsMesh () |
| |
| Boolean | IsParamEditable (GO2SEnum::GO2SParam param) |
| |
| Boolean | IsPoint () |
| |
| Boolean | IsPositionEditable () |
| |
| Boolean | IsSolid () |
| |
| Boolean | IsValid () |
| |
| Boolean | IsVisible () |
| |
| Boolean | IsWireframe () |
| |
| GO2SGeometry | Rotated (GO2SXYZ xyz, Number angle, Boolean xyzDir) |
| |
| GO2SEnum::GO2SError | SetColor (Number color) |
| |
| GO2SEnum::GO2SError | SetLayer (Number layer) |
| |
| GO2SEnum::GO2SError | SetLineType (GO2SEnum::GO2SLineType type) |
| |
| GO2SEnum::GO2SError | SetLineWidth (Number width) |
| |
| GO2SEnum::GO2SError | SetName (String p1) |
| |
| GO2SEnum::GO2SError | SetParam (GO2SEnum::GO2SParam param, Number value) |
| |
| GO2SEnum::GO2SError | SetPlane (Number plane) |
| |
| GO2SEnum::GO2SError | SetPolarPosition (Number radius, Number angle, Number altitude=0) |
| |
| GO2SEnum::GO2SError | SetPosition (GO2SXYZpos) |
| |
| GO2SEnum::GO2SError | SetPosition (Number x, Number y, Number z) |
| |
| GO2SEnum::GO2SError | SetVisible (Boolean visibility) |
| |
| String | toString () |
| |
| GO2SEnum::GO2SError | Transform (GO2SMatrix matrix) |
| |
| GO2SGeometry | Transformed (GO2SMatrix matrix) |
| |
| GO2SGeometry | Translated (GO2SXYZ origin, GO2SXYZ p) |
| |
Plane shape management.
Circle object.
Definition GO2SCircle.hpp:8
Class for utilitary methods of geometric entities.
Definition GO2SGeometryUtil.hpp:11
static Array< GO2SGeometry > GetPoints(Number color=-1, Number layer=-1, Number plane=-1)
static void SetUsedPlane(Number newPlane=-1)
Definition GO2SGeometryUtil.hpp:166
Plane shape management.
Definition GO2SPlane.hpp:21
GO2SEnum::GO2SError SetFrom3Points(GO2SXYZ origin, GO2SXYZ xAxis, GO2SXYZ yAxis, Boolean newPlane=true)
Creation of a coordinate reference.
Definition GO2SXYZ.hpp:89
◆ GO2SPlane()
| GO2SPlane::GO2SPlane |
( |
Number | no = MAXPLA | ) |
|
Default constructor.
- Parameters
-
| [in] | no | number of an existing plane number |
◆ DevSetFrom1Point()
Create a developped plane from1point
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Version
- 6.12
- Parameters
-
| [in] | geomRef | point of reference for the plane |
| [in] | bInterior | if the orientation is to the interior |
| [in] | bYMM | if the ordinate axis is in millimeters |
| [in] | bInvertY | if the Y axis is inverted |
| [in] | axis | rotation axis |
| [in] | newPlane | whether to create a new plane or modify the current one |
◆ DevSetFrom2Points()
Create a developped plane from 2 points
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Version
- 6.12
- Parameters
-
| [in] | geomRef1 | first point of reference for the plane |
| [in] | geomRef2 | second point of reference for the plane |
| [in] | bInterior | if the orientation is to the interior |
| [in] | bYMM | if the ordinate axis is in millimeters |
| [in] | bInvertY | if the Y axis is inverted |
| [in] | axis | rotation axis |
| [in] | newPlane | whether to create a new plane or modify the current one |
◆ GetMatrix()
Get the matrix associated with the plane
- Returns
- the matrix of the plane, or nullptr if no plane geometry exists
- Version
- 2026
◆ GetNumber()
| Number GO2SPlane::GetNumber |
( |
| ) |
|
|
inline |
- Returns
- the number of the plane (Reference plane is number 1)
◆ SetFrom3Points()
Create a plane from 3 points
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Parameters
-
| [in] | origin | origin of the plane |
| [in] | xAxis | coordinates of a point in X axis of the plane |
| [in] | yAxis | coordinates of a point in Y axis of the plane |
| [in] | newPlane | whether to create a new plane or modify the current one |
◆ SetFromAngle()
Create a plane by rotating the current plane
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Parameters
-
| [in] | origin | new origin for the plane |
| [in] | angle | rotation angle in degree |
| [in] | axis | rotation axis |
| [in] | newPlane | whether to create a new plane or modify the current one |
◆ SetFromMatrix()
Use matrix to define a plane
- Returns
- GO2SError.success (0) if success, see GO2SError otherwise
- Parameters
-
| [in] | matrix | the matrix defining the plane |
| [in] | newPlane | whether to create a new plane or modify the current one |