Skip to content
On this page

mxcad API 文档 / 3d / MdGeShape

Class: MdGeShape

3d.MdGeShape

表示一个形状

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeShape(p?)

Parameters

NameType
p?object

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Common

Common(other): MdGeShape

Parameters

NameType
otherMdGeShape

Returns

MdGeShape


Cut

Cut(remove): MdGeShape

Parameters

NameType
removeMdGeShape

Returns

MdGeShape


Draw

Draw(): string

Returns

string


Fuse

Fuse(other): MdGeShape

Parameters

NameType
otherMdGeShape

Returns

MdGeShape


GetBndBox

GetBndBox(): MdGeBndBox

Returns

MdGeBndBox


GetShapeName

GetShapeName(): string

Returns

string


IsNull

IsNull(): boolean

Returns

boolean


MirrorByAxis

MirrorByAxis(axis): void

Parameters

NameType
axisMdGeAxis

Returns

void


MirrorByCSYSR

MirrorByCSYSR(csysr): void

Parameters

NameType
csysrMdGeCSYSR

Returns

void


MirrorByPoint

MirrorByPoint(theP): void

Parameters

NameType
thePMdGePoint

Returns

void


MirroredByAxis

MirroredByAxis(axis): MdGeShape

Parameters

NameType
axisMdGeAxis

Returns

MdGeShape


MirroredByCSYSR

MirroredByCSYSR(csysr): MdGeShape

Parameters

NameType
csysrMdGeCSYSR

Returns

MdGeShape


MirroredByPoint

MirroredByPoint(theP): MdGeShape

Parameters

NameType
thePMdGePoint

Returns

MdGeShape


Quantities

Quantities(): MdGeArray1OfReal

Returns

MdGeArray1OfReal


Rotate

Rotate(axis, ang): void

Parameters

NameType
axisMdGeAxis
angnumber

Returns

void


Rotated

Rotated(axis, ang): MdGeShape

Parameters

NameType
axisMdGeAxis
angnumber

Returns

MdGeShape


Scale

Scale(point, s): void

Parameters

NameType
pointMdGePoint
snumber

Returns

void


Scaled

Scaled(point, s): MdGeShape

Parameters

NameType
pointMdGePoint
snumber

Returns

MdGeShape


Section

Section(other): MdGeShape

Parameters

NameType
otherMdGeShape

Returns

MdGeShape


SetColor

SetColor(color): void

Parameters

NameType
colorMdGeColor

Returns

void


SetMaterialAspect

SetMaterialAspect(material): void

Parameters

NameType
materialMdGeMaterialAspect

Returns

void


SetShapeName

SetShapeName(theShapeName): void

Parameters

NameType
theShapeNamestring

Returns

void


SetTextureFileName

SetTextureFileName(path): void

Parameters

NameType
pathstring

Returns

void


SetTextureOrigin

SetTextureOrigin(theToSetTextureOrigin, theUOrigin, theVOrigin): void

Parameters

NameType
theToSetTextureOriginboolean
theUOriginnumber
theVOriginnumber

Returns

void


SetTextureRepeat

SetTextureRepeat(theToRepeat, theURepeat, theVRepeat): void

Parameters

NameType
theToRepeatboolean
theURepeatnumber
theVRepeatnumber

Returns

void


SetTextureScale

SetTextureScale(theToSetTextureScale, theScaleU, theScaleV): void

Parameters

NameType
theToSetTextureScaleboolean
theScaleUnumber
theScaleVnumber

Returns

void


ShapeType

ShapeType(): MxShapeEnum

Returns

MxShapeEnum


TextureOrigin

TextureOrigin(): boolean

Returns

boolean


TextureRepeat

TextureRepeat(): boolean

Returns

boolean


TextureScale

TextureScale(): boolean

Returns

boolean


TextureScaleU

TextureScaleU(): number

Returns

number


TextureScaleV

TextureScaleV(): number

Returns

number


TextureUOrigin

TextureUOrigin(): number

Returns

number


TextureVOrigin

TextureVOrigin(): number

Returns

number


Transform

Transform(trsf): void

Parameters

NameType
trsfMdGeTrsf

Returns

void


Transformed

Transformed(trsf): MdGeShape

Parameters

NameType
trsfMdGeTrsf

Returns

MdGeShape


TranslateBy2Points

TranslateBy2Points(point1, point2): void

Parameters

NameType
point1MdGePoint
point2MdGePoint

Returns

void


TranslateByVec

TranslateByVec(vec): void

Parameters

NameType
vecMdGeVec

Returns

void


TranslatedBy2Points

TranslatedBy2Points(point1, point2): MdGeShape

Parameters

NameType
point1MdGePoint
point2MdGePoint

Returns

MdGeShape


TranslatedByVec

TranslatedByVec(vec): MdGeShape

Parameters

NameType
vecMdGeVec

Returns

MdGeShape


URepeat

URepeat(): number

Returns

number


VRepeat

VRepeat(): number

Returns

number


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject