[mxcad_3d API Document](../README. md)/Mx3dGeomObject
Class: Mx3dGeomObject
Represents the base class of parameter geometric objects.
Hierarchy
↳
Mx3dGeomObject
Table of contents
Constructors
Methods
- DynCast
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Rotate
- Rotated
- Scale
- Scaled
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
Constructors
constructor
• new Mx3dGeomObject(p?)
Parameters
| Name | Type |
|---|---|
p? | object |
Methods
DynCast
▸ DynCast(theObject): Mx3dGeomObject
Parameters
| Name | Type |
|---|---|
theObject | Mx3dGeomObject |
Returns
MirrorByAxis
▸ MirrorByAxis(A1): void
Mirror transform geometric objects through axes.
Parameters
| Name | Type | Description |
|---|---|---|
| A1 | [Mx3dGeAxis] (Mx3dGeAxis. md) | Axis object |
Returns
void
MirrorByCSYSR
▸ MirrorByCSYSR(A2): void
Mirror transform geometric objects using a right-handed coordinate system.
Parameters
| Name | Type | Description |
|---|---|---|
| A2 | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Right hand coordinate system object |
Returns
void
MirrorByPoint
▸ MirrorByPoint(P): void
Mirror transform geometric objects through points.
Parameters
| Name | Type | Description |
|---|---|---|
| P | [Mx3dGePoint] (Mx3dGePoint. md) | Point object |
Returns
void
MirroredByAxis
▸ MirroredByAxis(A1): Mx3dGeomObject
Return the new geometric object transformed through axis mirroring.
Parameters
| Name | Type | Description |
|---|---|---|
| A1 | [Mx3dGeAxis] (Mx3dGeAxis. md) | Axis object |
Returns
New geometric objects.
MirroredByCSYSR
▸ MirroredByCSYSR(A2): Mx3dGeomObject
Return the new geometric object after mirror transformation through the right-handed coordinate system.
Parameters
| Name | Type | Description |
|---|---|---|
| A2 | [Mx3dGeCSYSR] (Mx3dGeCSYSR. md) | Right hand coordinate system object |
Returns
New geometric objects.
MirroredByPoint
▸ MirroredByPoint(P): Mx3dGeomObject
Return the new geometric object after point mirror transformation.
Parameters
| Name | Type | Description |
|---|---|---|
| P | [Mx3dGePoint] (Mx3dGePoint. md) | Point object |
Returns
New geometric objects.
Rotate
▸ Rotate(A1, Ang): void
Rotate geometric objects.
Parameters
| Name | Type | Description |
|---|---|---|
| A1 | [Mx3dGeAxis] (Mx3dGeAxis. md) | Axis object |
| Ang | number | Rotation angle |
Returns
void
Rotated
▸ Rotated(A1, Ang): Mx3dGeomObject
Return the rotated new geometric object.
Parameters
| Name | Type | Description |
|---|---|---|
| A1 | [Mx3dGeAxis] (Mx3dGeAxis. md) | Axis object |
| Ang | number | Rotation angle |
Returns
New geometric objects.
Scale
▸ Scale(P, S): void
Scale geometric objects.
Parameters
| Name | Type | Description |
|---|---|---|
| P | [Mx3dGePoint] (Mx3dGePoint. md) | Point object |
| S | number | scaling ratio |
Returns
void
Scaled
▸ Scaled(P, S): Mx3dGeomObject
Return the scaled new geometric object.
Parameters
| Name | Type | Description |
|---|---|---|
| P | [Mx3dGePoint] (Mx3dGePoint. md) | Point object |
| S | number | scaling ratio |
Returns
New geometric objects.
Transformed
▸ Transformed(T): Mx3dGeomObject
Return the transformed new geometric object.
Parameters
| Name | Type | Description |
|---|---|---|
| T | [Mx3dGetStrf] (Mx3dGetStrf. md) | Transform the object |
Returns
New geometric objects.
TranslateBy2Points
▸ TranslateBy2Points(P1, P2): void
Translate geometric objects through two points.
Parameters
| Name | Type | Description |
|---|---|---|
| P1 | [Mx3dGePoint] (Mx3dGePoint. md) | Starting point object |
| P2 | [Mx3dGePoint] (Mx3dGePoint. md) | End point object |
Returns
void
TranslateByVec
▸ TranslateByVec(V): void
Translate geometric objects through vectors.
Parameters
| Name | Type | Description |
|---|---|---|
| V | [Mx3dGeVec] (Mx3dGeVec. md) | Vector object |
Returns
void
TranslatedBy2Points
▸ TranslatedBy2Points(P1, P2): Mx3dGeomObject
Return the new geometric object after translating through two points.
Parameters
| Name | Type | Description |
|---|---|---|
| P1 | [Mx3dGePoint] (Mx3dGePoint. md) | Starting point object |
| P2 | [Mx3dGePoint] (Mx3dGePoint. md) | End point object |
Returns
New geometric objects.
TranslatedByVec
▸ TranslatedByVec(V): Mx3dGeomObject
Return the new geometric object after vector translation.
Parameters
| Name | Type | Description |
|---|---|---|
| V | [Mx3dGeVec] (Mx3dGeVec. md) | Vector object |
Returns
New geometric objects.