Skip to content
On this page

mxcad API 文档 / 3d / MdGeSphere

Class: MdGeSphere

3d.MdGeSphere

表示一个球体

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeSphere(p1?, p2?, p3?, p4?)

Parameters

NameType
p1?number | object | MdGeCSYS
p2?number
p3?number
p4?number

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Area

Area(): number

Returns

number


Direct

Direct(): boolean

Returns

boolean


Face

Face(p1?, p2?, p3?, p4?): MdGeFace

Parameters

NameType
p1?number | MdGeWire
p2?number | boolean
p3?number
p4?number

Returns

MdGeFace


Location

Location(): MdGePoint

Returns

MdGePoint


MirrorByAxis

MirrorByAxis(theA1): void

Parameters

NameType
theA1MdGeAxis

Returns

void


MirrorByCSYSR

MirrorByCSYSR(theA2): void

Parameters

NameType
theA2MdGeCSYSR

Returns

void


MirrorByPoint

MirrorByPoint(theP): void

Parameters

NameType
thePMdGePoint

Returns

void


MirroredByAxis

MirroredByAxis(theA1): MdGeSphere

Parameters

NameType
theA1MdGeAxis

Returns

MdGeSphere


MirroredByCSYSR

MirroredByCSYSR(theA2): MdGeSphere

Parameters

NameType
theA2MdGeCSYSR

Returns

MdGeSphere


MirroredByPoint

MirroredByPoint(theP): MdGeSphere

Parameters

NameType
thePMdGePoint

Returns

MdGeSphere


Position

Position(): MdGeCSYS

Returns

MdGeCSYS


Radius

Radius(): number

Returns

number


Rotate

Rotate(theA1, theAng): void

Parameters

NameType
theA1MdGeAxis
theAngnumber

Returns

void


Rotated

Rotated(theA1, theAng): MdGeSphere

Parameters

NameType
theA1MdGeAxis
theAngnumber

Returns

MdGeSphere


Scale

Scale(theP, theS): void

Parameters

NameType
thePMdGePoint
theSnumber

Returns

void


Scaled

Scaled(theP, theS): MdGeSphere

Parameters

NameType
thePMdGePoint
theSnumber

Returns

MdGeSphere


SetLocation

SetLocation(theLoc): void

Parameters

NameType
theLocMdGePoint

Returns

void


SetPosition

SetPosition(theA3): void

Parameters

NameType
theA3MdGeCSYS

Returns

void


SetRadius

SetRadius(theR): void

Parameters

NameType
theRnumber

Returns

void


Shape

Shape(p1?, p2?, p3?): MdGeShape

Parameters

NameType
p1?number
p2?number
p3?number

Returns

MdGeShape


Transform

Transform(theT): void

Parameters

NameType
theTMdGeTrsf

Returns

void


Transformed

Transformed(theT): MdGeSphere

Parameters

NameType
theTMdGeTrsf

Returns

MdGeSphere


TranslateBy2Points

TranslateBy2Points(theP1, theP2): void

Parameters

NameType
theP1MdGePoint
theP2MdGePoint

Returns

void


TranslateByVec

TranslateByVec(theV): void

Parameters

NameType
theVMdGeVec

Returns

void


TranslatedBy2Points

TranslatedBy2Points(theP1, theP2): MdGeSphere

Parameters

NameType
theP1MdGePoint
theP2MdGePoint

Returns

MdGeSphere


TranslatedByVec

TranslatedByVec(theV): MdGeSphere

Parameters

NameType
theVMdGeVec

Returns

MdGeSphere


UReverse

UReverse(): void

Returns

void


VReverse

VReverse(): void

Returns

void


Volume

Volume(): number

Returns

number


XAxis

XAxis(): MdGeAxis

Returns

MdGeAxis


YAxis

YAxis(): MdGeAxis

Returns

MdGeAxis


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject