mxcad API 文档 / 3d / MdGeShape
Class: MdGeShape
3d.MdGeShape
表示一个形状
Hierarchy
↳
MdGeShape
↳↳
MdGeVertex
↳↳
MdGeEdge
↳↳
MdGeWire
↳↳
MdGeFace
↳↳
MdGeShell
↳↳
MdGeSolid
↳↳
MdGeCompound
Table of contents
Constructors
Properties
Methods
- Common
- Cut
- Draw
- Fuse
- GetBndBox
- GetShapeName
- IsNull
- MirrorByAxis
- MirrorByCSYSR
- MirrorByPoint
- MirroredByAxis
- MirroredByCSYSR
- MirroredByPoint
- Quantities
- Rotate
- Rotated
- Scale
- Scaled
- Section
- SetColor
- SetMaterialAspect
- SetShapeName
- SetTextureFileName
- SetTextureOrigin
- SetTextureRepeat
- SetTextureScale
- ShapeType
- TextureOrigin
- TextureRepeat
- TextureScale
- TextureScaleU
- TextureScaleV
- TextureUOrigin
- TextureVOrigin
- Transform
- Transformed
- TranslateBy2Points
- TranslateByVec
- TranslatedBy2Points
- TranslatedByVec
- URepeat
- VRepeat
- getImp
- initTempObject
Constructors
constructor
• new MdGeShape(p?
)
Parameters
Name | Type |
---|---|
p? | object |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Common
▸ Common(other
): MdGeShape
Parameters
Name | Type |
---|---|
other | MdGeShape |
Returns
Cut
▸ Cut(remove
): MdGeShape
Parameters
Name | Type |
---|---|
remove | MdGeShape |
Returns
Draw
▸ Draw(): string
Returns
string
Fuse
▸ Fuse(other
): MdGeShape
Parameters
Name | Type |
---|---|
other | MdGeShape |
Returns
GetBndBox
▸ GetBndBox(): MdGeBndBox
Returns
GetShapeName
▸ GetShapeName(): string
Returns
string
IsNull
▸ IsNull(): boolean
Returns
boolean
MirrorByAxis
▸ MirrorByAxis(axis
): void
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
Returns
void
MirrorByCSYSR
▸ MirrorByCSYSR(csysr
): void
Parameters
Name | Type |
---|---|
csysr | MdGeCSYSR |
Returns
void
MirrorByPoint
▸ MirrorByPoint(theP
): void
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
void
MirroredByAxis
▸ MirroredByAxis(axis
): MdGeShape
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
Returns
MirroredByCSYSR
▸ MirroredByCSYSR(csysr
): MdGeShape
Parameters
Name | Type |
---|---|
csysr | MdGeCSYSR |
Returns
MirroredByPoint
▸ MirroredByPoint(theP
): MdGeShape
Parameters
Name | Type |
---|---|
theP | MdGePoint |
Returns
Quantities
▸ Quantities(): MdGeArray1OfReal
Returns
Rotate
▸ Rotate(axis
, ang
): void
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
ang | number |
Returns
void
Rotated
▸ Rotated(axis
, ang
): MdGeShape
Parameters
Name | Type |
---|---|
axis | MdGeAxis |
ang | number |
Returns
Scale
▸ Scale(point
, s
): void
Parameters
Name | Type |
---|---|
point | MdGePoint |
s | number |
Returns
void
Scaled
▸ Scaled(point
, s
): MdGeShape
Parameters
Name | Type |
---|---|
point | MdGePoint |
s | number |
Returns
Section
▸ Section(other
): MdGeShape
Parameters
Name | Type |
---|---|
other | MdGeShape |
Returns
SetColor
▸ SetColor(color
): void
Parameters
Name | Type |
---|---|
color | MdGeColor |
Returns
void
SetMaterialAspect
▸ SetMaterialAspect(material
): void
Parameters
Name | Type |
---|---|
material | MdGeMaterialAspect |
Returns
void
SetShapeName
▸ SetShapeName(theShapeName
): void
Parameters
Name | Type |
---|---|
theShapeName | string |
Returns
void
SetTextureFileName
▸ SetTextureFileName(path
): void
Parameters
Name | Type |
---|---|
path | string |
Returns
void
SetTextureOrigin
▸ SetTextureOrigin(theToSetTextureOrigin
, theUOrigin
, theVOrigin
): void
Parameters
Name | Type |
---|---|
theToSetTextureOrigin | boolean |
theUOrigin | number |
theVOrigin | number |
Returns
void
SetTextureRepeat
▸ SetTextureRepeat(theToRepeat
, theURepeat
, theVRepeat
): void
Parameters
Name | Type |
---|---|
theToRepeat | boolean |
theURepeat | number |
theVRepeat | number |
Returns
void
SetTextureScale
▸ SetTextureScale(theToSetTextureScale
, theScaleU
, theScaleV
): void
Parameters
Name | Type |
---|---|
theToSetTextureScale | boolean |
theScaleU | number |
theScaleV | number |
Returns
void
ShapeType
▸ ShapeType(): MxShapeEnum
Returns
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
Name | Type |
---|---|
trsf | MdGeTrsf |
Returns
void
Transformed
▸ Transformed(trsf
): MdGeShape
Parameters
Name | Type |
---|---|
trsf | MdGeTrsf |
Returns
TranslateBy2Points
▸ TranslateBy2Points(point1
, point2
): void
Parameters
Name | Type |
---|---|
point1 | MdGePoint |
point2 | MdGePoint |
Returns
void
TranslateByVec
▸ TranslateByVec(vec
): void
Parameters
Name | Type |
---|---|
vec | MdGeVec |
Returns
void
TranslatedBy2Points
▸ TranslatedBy2Points(point1
, point2
): MdGeShape
Parameters
Name | Type |
---|---|
point1 | MdGePoint |
point2 | MdGePoint |
Returns
TranslatedByVec
▸ TranslatedByVec(vec
): MdGeShape
Parameters
Name | Type |
---|---|
vec | MdGeVec |
Returns
URepeat
▸ URepeat(): number
Returns
number
VRepeat
▸ VRepeat(): number
Returns
number
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void