mxcad API 文档 / MdGeBRep
Class: MdGeBRep
表示Brep工具
Table of contents
Constructors
Properties
Methods
- AddClipPlane
- AddLight
- AddModelTexture
- ChangeSelectedColor
- ChangeSelectedMaterial
- Continuity
- Degenerated
- DeleteAllLights
- DisableAllLights
- DisableLight
- EnableAllLights
- EnableLight
- GetSelectedShapes
- HasContinuity
- IsClosed
- IsGeometric
- MaxContinuity
- MaxTolerance
- NaturalRestriction
- OutputActiveLights
- OutputDefinedLights
- Parameter
- Pnt
- RemoveAllLights
- RemoveModelTexture
- SameParameter
- SameRange
- SetAllLightsOff
- SetAllLightsOn
- SetColorByEntry
- SetLightOff
- SetLightOn
- SetProj
- SetProjectionType
- Surface
- Tolerance
- drawAisObjChildren
- getAngle
- getArea
- getCircleCenter
- getCircleDiameter
- getLabelAttributes
- getLength
- getMinDistance
- getVertexPosition
- moveObjectByTrsf
- openBrepFromUrl
- openGltfFromUrl
- openGltfFromUrlByOCAF
- openIgesFromUrl
- openIgesFromUrlByOCAF
- openObjFromUrl
- openObjFromUrlByOCAF
- openStepFromUrl
- openStepFromUrlByOCAF
- openStlFromUrl
- openStlFromUrlByOCAF
- openVrmlFromUrl
- openVrmlFromUrlByOCAF
- printSelObjInfo
- ptCanvasToView
- refreshDocTree
- saveStepFile
- selFace
- selPoint
- setGradientBgColor
- setObjectColor
- someTests
Constructors
constructor
• new MdGeBRep()
Properties
imp
• Protected
imp: any
= 0
Methods
AddClipPlane
▸ AddClipPlane(pln
): void
Parameters
Name | Type |
---|---|
pln | MdGePlane |
Returns
void
AddLight
▸ AddLight(theLight
): void
Parameters
Name | Type |
---|---|
theLight | MdGeLight |
Returns
void
AddModelTexture
▸ AddModelTexture(theFileName
): void
Parameters
Name | Type |
---|---|
theFileName | string |
Returns
void
ChangeSelectedColor
▸ ChangeSelectedColor(color
): void
Parameters
Name | Type |
---|---|
color | MdGeColor |
Returns
void
ChangeSelectedMaterial
▸ ChangeSelectedMaterial(material
): void
Parameters
Name | Type |
---|---|
material | MdGeMaterialAspect |
Returns
void
Continuity
▸ Continuity(E
, F1
, F2
): MxGAShapeEnum
Parameters
Name | Type |
---|---|
E | MdGeEdge |
F1 | MdGeFace |
F2 | MdGeFace |
Returns
Degenerated
▸ Degenerated(E
): boolean
Parameters
Name | Type |
---|---|
E | MdGeEdge |
Returns
boolean
DeleteAllLights
▸ DeleteAllLights(): void
Returns
void
DisableAllLights
▸ DisableAllLights(): void
Returns
void
DisableLight
▸ DisableLight(theName
): boolean
Parameters
Name | Type |
---|---|
theName | string |
Returns
boolean
EnableAllLights
▸ EnableAllLights(): void
Returns
void
EnableLight
▸ EnableLight(theName
): boolean
Parameters
Name | Type |
---|---|
theName | string |
Returns
boolean
GetSelectedShapes
▸ GetSelectedShapes(): MdGeListOfShape
Returns
HasContinuity
▸ HasContinuity(E
, F1?
, F2?
): undefined
| boolean
Parameters
Name | Type |
---|---|
E | MdGeEdge |
F1? | MdGeFace |
F2? | MdGeFace |
Returns
undefined
| boolean
IsClosed
▸ IsClosed(p1
, p2?
): undefined
| boolean
Parameters
Name | Type |
---|---|
p1 | MdGeShape | MdGeEdge |
p2? | MdGeFace |
Returns
undefined
| boolean
IsGeometric
▸ IsGeometric(F
): boolean
Parameters
Name | Type |
---|---|
F | MdGeFace |
Returns
boolean
MaxContinuity
▸ MaxContinuity(theEdge
): MxGAShapeEnum
Parameters
Name | Type |
---|---|
theEdge | MdGeEdge |
Returns
MaxTolerance
▸ MaxTolerance(theShape
, theSubShape
): number
Parameters
Name | Type |
---|---|
theShape | MdGeShape |
theSubShape | MxShapeEnum |
Returns
number
NaturalRestriction
▸ NaturalRestriction(F
): boolean
Parameters
Name | Type |
---|---|
F | MdGeFace |
Returns
boolean
OutputActiveLights
▸ OutputActiveLights(): void
Returns
void
OutputDefinedLights
▸ OutputDefinedLights(): void
Returns
void
Parameter
▸ Parameter(V
, E
, F?
): number
Parameters
Name | Type |
---|---|
V | MdGeVertex |
E | MdGeEdge |
F? | MdGeFace |
Returns
number
Pnt
▸ Pnt(V
): MdGePoint
Parameters
Name | Type |
---|---|
V | MdGeVertex |
Returns
RemoveAllLights
▸ RemoveAllLights(): void
Returns
void
RemoveModelTexture
▸ RemoveModelTexture(): void
Returns
void
SameParameter
▸ SameParameter(E
): boolean
Parameters
Name | Type |
---|---|
E | MdGeEdge |
Returns
boolean
SameRange
▸ SameRange(E
): boolean
Parameters
Name | Type |
---|---|
E | MdGeEdge |
Returns
boolean
SetAllLightsOff
▸ SetAllLightsOff(): void
Returns
void
SetAllLightsOn
▸ SetAllLightsOn(): void
Returns
void
SetColorByEntry
▸ SetColorByEntry(theEntry
, theColor
): void
Parameters
Name | Type |
---|---|
theEntry | string |
theColor | MdGeColor |
Returns
void
SetLightOff
▸ SetLightOff(theName
): boolean
Parameters
Name | Type |
---|---|
theName | string |
Returns
boolean
SetLightOn
▸ SetLightOn(theName
): boolean
Parameters
Name | Type |
---|---|
theName | string |
Returns
boolean
SetProj
▸ SetProj(theOrientation
, theIsYup
): void
Parameters
Name | Type |
---|---|
theOrientation | MxV3dTypeOfOrientation |
theIsYup | boolean |
Returns
void
SetProjectionType
▸ SetProjectionType(theProjection
): void
Parameters
Name | Type |
---|---|
theProjection | MxCameraProjection |
Returns
void
Surface
▸ Surface(F
): MdGeHGeomSurface
Parameters
Name | Type |
---|---|
F | MdGeFace |
Returns
Tolerance
▸ Tolerance(F
): number
Parameters
Name | Type |
---|---|
F | MdGeFace |
Returns
number
drawAisObjChildren
▸ drawAisObjChildren(): void
Returns
void
getAngle
▸ getAngle(theEdge1
, theEdge2
): number
Parameters
Name | Type |
---|---|
theEdge1 | MdGeEdge |
theEdge2 | MdGeEdge |
Returns
number
getArea
▸ getArea(theFace
): number
Parameters
Name | Type |
---|---|
theFace | MdGeFace |
Returns
number
getCircleCenter
▸ getCircleCenter(theEdge
): MdGePoint
Parameters
Name | Type |
---|---|
theEdge | MdGeEdge |
Returns
getCircleDiameter
▸ getCircleDiameter(theEdge
): number
Parameters
Name | Type |
---|---|
theEdge | MdGeEdge |
Returns
number
getLabelAttributes
▸ getLabelAttributes(theEntry
): string
Parameters
Name | Type |
---|---|
theEntry | string |
Returns
string
getLength
▸ getLength(theEdge
): number
Parameters
Name | Type |
---|---|
theEdge | MdGeEdge |
Returns
number
getMinDistance
▸ getMinDistance(theShape1
, theShape2
): number
Parameters
Name | Type |
---|---|
theShape1 | MdGeShape |
theShape2 | MdGeShape |
Returns
number
getVertexPosition
▸ getVertexPosition(theVertex
): MdGePoint
Parameters
Name | Type |
---|---|
theVertex | MdGeVertex |
Returns
moveObjectByTrsf
▸ moveObjectByTrsf(theEntry
, theTrsf
): void
Parameters
Name | Type |
---|---|
theEntry | string |
theTrsf | MdGeTrsf |
Returns
void
openBrepFromUrl
▸ openBrepFromUrl(theModelPath
): MdGeShape
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
openGltfFromUrl
▸ openGltfFromUrl(theModelPath
): MdGeShape
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
openGltfFromUrlByOCAF
▸ openGltfFromUrlByOCAF(theModelPath
): string
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
string
openIgesFromUrl
▸ openIgesFromUrl(theModelPath
): MdGeShape
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
openIgesFromUrlByOCAF
▸ openIgesFromUrlByOCAF(theModelPath
): string
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
string
openObjFromUrl
▸ openObjFromUrl(theModelPath
): MdGeShape
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
openObjFromUrlByOCAF
▸ openObjFromUrlByOCAF(theModelPath
): string
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
string
openStepFromUrl
▸ openStepFromUrl(theModelPath
): MdGeShape
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
openStepFromUrlByOCAF
▸ openStepFromUrlByOCAF(theModelPath
): string
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
string
openStlFromUrl
▸ openStlFromUrl(theModelPath
): MdGeShape
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
openStlFromUrlByOCAF
▸ openStlFromUrlByOCAF(theModelPath
): string
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
string
openVrmlFromUrl
▸ openVrmlFromUrl(theModelPath
): MdGeShape
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
openVrmlFromUrlByOCAF
▸ openVrmlFromUrlByOCAF(theModelPath
): string
Parameters
Name | Type |
---|---|
theModelPath | string |
Returns
string
printSelObjInfo
▸ printSelObjInfo(): void
Returns
void
ptCanvasToView
▸ ptCanvasToView(x
, y
): MdGePoint
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
refreshDocTree
▸ refreshDocTree(): string
Returns
string
saveStepFile
▸ saveStepFile(fileName
, theDoc
): void
Parameters
Name | Type |
---|---|
fileName | string |
theDoc | Mx3dDbDocument |
Returns
void
selFace
▸ selFace(): Promise
<[face: MdGeFace, pt: MdGePoint]>
Returns
Promise
<[face: MdGeFace, pt: MdGePoint]>
selPoint
▸ selPoint(): Promise
<MdGePoint
>
Returns
setGradientBgColor
▸ setGradientBgColor(theColor1
, theColor2
, theMethod
): void
Parameters
Name | Type |
---|---|
theColor1 | MdGeColor |
theColor2 | MdGeColor |
theMethod | MxGradientFillMethod |
Returns
void
setObjectColor
▸ setObjectColor(theEntry
, theColor
): void
Parameters
Name | Type |
---|---|
theEntry | string |
theColor | MdGeColor |
Returns
void
someTests
▸ someTests(): void
Returns
void