Skip to content
On this page

mxcad API 文档 / 3d / MdGeBRep

Class: MdGeBRep

3d.MdGeBRep

表示Brep工具

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeBRep()

Properties

imp

Protected imp: any = 0

Methods

AddClipPlane

AddClipPlane(pln): void

Parameters

NameType
plnMdGePlane

Returns

void


AddLight

AddLight(theLight): void

Parameters

NameType
theLightMdGeLight

Returns

void


AddModelTexture

AddModelTexture(theFileName): void

Parameters

NameType
theFileNamestring

Returns

void


ChangeSelectedColor

ChangeSelectedColor(color): void

Parameters

NameType
colorMdGeColor

Returns

void


ChangeSelectedMaterial

ChangeSelectedMaterial(material): void

Parameters

NameType
materialMdGeMaterialAspect

Returns

void


Continuity

Continuity(E, F1, F2): MxGAShapeEnum

Parameters

NameType
EMdGeEdge
F1MdGeFace
F2MdGeFace

Returns

MxGAShapeEnum


Degenerated

Degenerated(E): boolean

Parameters

NameType
EMdGeEdge

Returns

boolean


DeleteAllLights

DeleteAllLights(): void

Returns

void


DisableAllLights

DisableAllLights(): void

Returns

void


DisableLight

DisableLight(theName): boolean

Parameters

NameType
theNamestring

Returns

boolean


EnableAllLights

EnableAllLights(): void

Returns

void


EnableLight

EnableLight(theName): boolean

Parameters

NameType
theNamestring

Returns

boolean


GetSelectedShapes

GetSelectedShapes(): MdGeListOfShape

Returns

MdGeListOfShape


HasContinuity

HasContinuity(E, F1?, F2?): undefined | boolean

Parameters

NameType
EMdGeEdge
F1?MdGeFace
F2?MdGeFace

Returns

undefined | boolean


IsClosed

IsClosed(p1, p2?): undefined | boolean

Parameters

NameType
p1MdGeShape | MdGeEdge
p2?MdGeFace

Returns

undefined | boolean


IsGeometric

IsGeometric(F): boolean

Parameters

NameType
FMdGeFace

Returns

boolean


MaxContinuity

MaxContinuity(theEdge): MxGAShapeEnum

Parameters

NameType
theEdgeMdGeEdge

Returns

MxGAShapeEnum


MaxTolerance

MaxTolerance(theShape, theSubShape): number

Parameters

NameType
theShapeMdGeShape
theSubShapeMxShapeEnum

Returns

number


NaturalRestriction

NaturalRestriction(F): boolean

Parameters

NameType
FMdGeFace

Returns

boolean


OutputActiveLights

OutputActiveLights(): void

Returns

void


OutputDefinedLights

OutputDefinedLights(): void

Returns

void


Parameter

Parameter(V, E, F?): number

Parameters

NameType
VMdGeVertex
EMdGeEdge
F?MdGeFace

Returns

number


Pnt

Pnt(V): MdGePoint

Parameters

NameType
VMdGeVertex

Returns

MdGePoint


RemoveAllLights

RemoveAllLights(): void

Returns

void


RemoveModelTexture

RemoveModelTexture(): void

Returns

void


SameParameter

SameParameter(E): boolean

Parameters

NameType
EMdGeEdge

Returns

boolean


SameRange

SameRange(E): boolean

Parameters

NameType
EMdGeEdge

Returns

boolean


SetAllLightsOff

SetAllLightsOff(): void

Returns

void


SetAllLightsOn

SetAllLightsOn(): void

Returns

void


SetColorByEntry

SetColorByEntry(theEntry, theColor): void

Parameters

NameType
theEntrystring
theColorMdGeColor

Returns

void


SetLightOff

SetLightOff(theName): boolean

Parameters

NameType
theNamestring

Returns

boolean


SetLightOn

SetLightOn(theName): boolean

Parameters

NameType
theNamestring

Returns

boolean


SetProj

SetProj(theOrientation, theIsYup): void

Parameters

NameType
theOrientationMxV3dTypeOfOrientation
theIsYupboolean

Returns

void


SetProjectionType

SetProjectionType(theProjection): void

Parameters

NameType
theProjectionMxCameraProjection

Returns

void


Surface

Surface(F): MdGeHGeomSurface

Parameters

NameType
FMdGeFace

Returns

MdGeHGeomSurface


Tolerance

Tolerance(F): number

Parameters

NameType
FMdGeFace

Returns

number


drawAisObjChildren

drawAisObjChildren(): void

Returns

void


getAngle

getAngle(theEdge1, theEdge2): number

Parameters

NameType
theEdge1MdGeEdge
theEdge2MdGeEdge

Returns

number


getArea

getArea(theFace): number

Parameters

NameType
theFaceMdGeFace

Returns

number


getCircleCenter

getCircleCenter(theEdge): MdGePoint

Parameters

NameType
theEdgeMdGeEdge

Returns

MdGePoint


getCircleDiameter

getCircleDiameter(theEdge): number

Parameters

NameType
theEdgeMdGeEdge

Returns

number


getLabelAttributes

getLabelAttributes(theEntry): string

Parameters

NameType
theEntrystring

Returns

string


getLength

getLength(theEdge): number

Parameters

NameType
theEdgeMdGeEdge

Returns

number


getMinDistance

getMinDistance(theShape1, theShape2): number

Parameters

NameType
theShape1MdGeShape
theShape2MdGeShape

Returns

number


getVertexPosition

getVertexPosition(theVertex): MdGePoint

Parameters

NameType
theVertexMdGeVertex

Returns

MdGePoint


moveObjectByTrsf

moveObjectByTrsf(theEntry, theTrsf): void

Parameters

NameType
theEntrystring
theTrsfMdGeTrsf

Returns

void


openBrepFromUrl

openBrepFromUrl(theModelPath): MdGeShape

Parameters

NameType
theModelPathstring

Returns

MdGeShape


openGltfFromUrl

openGltfFromUrl(theModelPath): MdGeShape

Parameters

NameType
theModelPathstring

Returns

MdGeShape


openGltfFromUrlByOCAF

openGltfFromUrlByOCAF(theModelPath): string

Parameters

NameType
theModelPathstring

Returns

string


openIgesFromUrl

openIgesFromUrl(theModelPath): MdGeShape

Parameters

NameType
theModelPathstring

Returns

MdGeShape


openIgesFromUrlByOCAF

openIgesFromUrlByOCAF(theModelPath): string

Parameters

NameType
theModelPathstring

Returns

string


openObjFromUrl

openObjFromUrl(theModelPath): MdGeShape

Parameters

NameType
theModelPathstring

Returns

MdGeShape


openObjFromUrlByOCAF

openObjFromUrlByOCAF(theModelPath): string

Parameters

NameType
theModelPathstring

Returns

string


openStepFromUrl

openStepFromUrl(theModelPath): MdGeShape

Parameters

NameType
theModelPathstring

Returns

MdGeShape


openStepFromUrlByOCAF

openStepFromUrlByOCAF(theModelPath): string

Parameters

NameType
theModelPathstring

Returns

string


openStlFromUrl

openStlFromUrl(theModelPath): MdGeShape

Parameters

NameType
theModelPathstring

Returns

MdGeShape


openStlFromUrlByOCAF

openStlFromUrlByOCAF(theModelPath): string

Parameters

NameType
theModelPathstring

Returns

string


openVrmlFromUrl

openVrmlFromUrl(theModelPath): MdGeShape

Parameters

NameType
theModelPathstring

Returns

MdGeShape


openVrmlFromUrlByOCAF

openVrmlFromUrlByOCAF(theModelPath): string

Parameters

NameType
theModelPathstring

Returns

string


printSelObjInfo

printSelObjInfo(): void

Returns

void


ptCanvasToView

ptCanvasToView(x, y): MdGePoint

Parameters

NameType
xnumber
ynumber

Returns

MdGePoint


refreshDocTree

refreshDocTree(): string

Returns

string


saveStepFile

saveStepFile(fileName, theDoc): void

Parameters

NameType
fileNamestring
theDocMx3dDbDocument

Returns

void


selFace

selFace(): Promise<[face: MdGeFace, pt: MdGePoint]>

Returns

Promise<[face: MdGeFace, pt: MdGePoint]>


selPoint

selPoint(): Promise<MdGePoint>

Returns

Promise<MdGePoint>


setGradientBgColor

setGradientBgColor(theColor1, theColor2, theMethod): void

Parameters

NameType
theColor1MdGeColor
theColor2MdGeColor
theMethodMxGradientFillMethod

Returns

void


setObjectColor

setObjectColor(theEntry, theColor): void

Parameters

NameType
theEntrystring
theColorMdGeColor

Returns

void


someTests

someTests(): void

Returns

void