Skip to content

[mxcad_3d API Document](../README. md)/Mx3dGeomSurface

Class: Mx3dGeomSurface ​

The Mx3dGeomSurface class provides methods for 3D surface manipulation.

Hierarchy ​

Table of contents ​

Methods ​

Methods ​

DynCast ​

▸ DynCast(theObject): Mx3dGeomSurface

Parameters ​

NameType
theObjectMx3dGeomObject

Returns ​

Mx3dGeomSurface

Inherited from ​

Mx3dGeomObject.DynCast


DynamicType ​

▸ DynamicType(): string

Return the dynamic type of the object.

Returns ​

string

A dynamically typed string representation.


MirrorByAxis ​

▸ MirrorByAxis(A1): void

Mirror transform geometric objects through axes.

Parameters ​

NameTypeDescription
A1[Mx3dGeAxis] (Mx3dGeAxis. md)Axis object

Returns ​

void

Inherited from ​

Mx3dGeomObject.MirrorByAxis


MirrorByCSYSR ​

▸ MirrorByCSYSR(A2): void

Mirror transform geometric objects using a right-handed coordinate system.

Parameters ​

NameTypeDescription
A2[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Right hand coordinate system object

Returns ​

void

Inherited from ​

Mx3dGeomObject.MirrorByCSYSR


MirrorByPoint ​

▸ MirrorByPoint(P): void

Mirror transform geometric objects through points.

Parameters ​

NameTypeDescription
P[Mx3dGePoint] (Mx3dGePoint. md)Point object

Returns ​

void

Inherited from ​

Mx3dGeomObject.MirrorByPoint


MirroredByAxis ​

▸ MirroredByAxis(A1): Mx3dGeomSurface

Return the new geometric object transformed through axis mirroring.

Parameters ​

NameTypeDescription
A1[Mx3dGeAxis] (Mx3dGeAxis. md)Axis object

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.MirroredByAxis


MirroredByCSYSR ​

▸ MirroredByCSYSR(A2): Mx3dGeomSurface

Return the new geometric object after mirror transformation through the right-handed coordinate system.

Parameters ​

NameTypeDescription
A2[Mx3dGeCSYSR] (Mx3dGeCSYSR. md)Right hand coordinate system object

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.MirroredByCSYSR


MirroredByPoint ​

▸ MirroredByPoint(P): Mx3dGeomSurface

Return the new geometric object after point mirror transformation.

Parameters ​

NameTypeDescription
P[Mx3dGePoint] (Mx3dGePoint. md)Point object

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.MirroredByPoint


Rotate ​

▸ Rotate(A1, Ang): void

Rotate geometric objects.

Parameters ​

NameTypeDescription
A1[Mx3dGeAxis] (Mx3dGeAxis. md)Axis object
AngnumberRotation angle

Returns ​

void

Inherited from ​

Mx3dGeomObject.Rotate


Rotated ​

▸ Rotated(A1, Ang): Mx3dGeomSurface

Return the rotated new geometric object.

Parameters ​

NameTypeDescription
A1[Mx3dGeAxis] (Mx3dGeAxis. md)Axis object
AngnumberRotation angle

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.Rotated


Scale ​

▸ Scale(P, S): void

Scale geometric objects.

Parameters ​

NameTypeDescription
P[Mx3dGePoint] (Mx3dGePoint. md)Point object
Snumberscaling ratio

Returns ​

void

Inherited from ​

Mx3dGeomObject.Scale


Scaled ​

▸ Scaled(P, S): Mx3dGeomSurface

Return the scaled new geometric object.

Parameters ​

NameTypeDescription
P[Mx3dGePoint] (Mx3dGePoint. md)Point object
Snumberscaling ratio

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.Scaled


TransformParameters ​

▸ TransformParameters(UV, T): void

Transform the surface parameters according to the given transformation matrix T.

Parameters ​

NameTypeDescription
UV[dU: number, dV: number]Parameter array containing the values of U and V
T[Mx3dGetStrf] (Mx3dGetStrf. md)Transform matrix

Returns ​

void


Transformed ​

▸ Transformed(T): Mx3dGeomSurface

Return the transformed new geometric object.

Parameters ​

NameTypeDescription
T[Mx3dGetStrf] (Mx3dGetStrf. md)Transform the object

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.Transformed


TranslateBy2Points ​

▸ TranslateBy2Points(P1, P2): void

Translate geometric objects through two points.

Parameters ​

NameTypeDescription
P1[Mx3dGePoint] (Mx3dGePoint. md)Starting point object
P2[Mx3dGePoint] (Mx3dGePoint. md)End point object

Returns ​

void

Inherited from ​

Mx3dGeomObject.TranslateBy2Points


TranslateByVec ​

▸ TranslateByVec(V): void

Translate geometric objects through vectors.

Parameters ​

NameTypeDescription
V[Mx3dGeVec] (Mx3dGeVec. md)Vector object

Returns ​

void

Inherited from ​

Mx3dGeomObject.TranslateByVec


TranslatedBy2Points ​

▸ TranslatedBy2Points(P1, P2): Mx3dGeomSurface

Return the new geometric object after translating through two points.

Parameters ​

NameTypeDescription
P1[Mx3dGePoint] (Mx3dGePoint. md)Starting point object
P2[Mx3dGePoint] (Mx3dGePoint. md)End point object

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.TranslatedBy2Points


TranslatedByVec ​

▸ TranslatedByVec(V): Mx3dGeomSurface

Return the new geometric object after vector translation.

Parameters ​

NameTypeDescription
V[Mx3dGeVec] (Mx3dGeVec. md)Vector object

Returns ​

Mx3dGeomSurface

New geometric objects.

Inherited from ​

Mx3dGeomObject.TranslatedByVec


UPeriod ​

▸ UPeriod(): number

Return the period of the surface in the U direction.

Returns ​

number

The period of the surface in the U direction.


UReversed ​

▸ UReversed(): Mx3dGeomSurface

Parameterization of reversing the U direction.

Returns ​

Mx3dGeomSurface

Return the current object to implement a chain call.


VPeriod ​

▸ VPeriod(): number

Return the period of the surface in the V direction.

Returns ​

number

The period of the surface in the V direction.


VReversed ​

▸ VReversed(): Mx3dGeomSurface

Parameterization of reversing the V direction.

Returns ​

Mx3dGeomSurface

Return the current object to implement a chain call.


Value ​

▸ Value(U, V): Mx3dGePoint

Calculate the points on the surface corresponding to the parameters (U, V).

Parameters ​

NameTypeDescription
UnumberSurface parameter U
VnumberSurface parameter V

Returns ​

Mx3dGePoint

Corresponding point.