@yzw/bim-operator - v1.8.0 › Globals › "providers/bimface/bimface_external" › BimfaceExternal
bimface外部构件
- BimfaceExternal
+ new BimfaceExternal(viewer3D
: any): BimfaceExternal
Defined in src/providers/bimface/bimface_external.ts:13
Parameters:
Name | Type |
---|---|
viewer3D |
any |
Returns: BimfaceExternal
• externalMgr: any
Defined in src/providers/bimface/bimface_external.ts:11
• loader: any
Defined in src/providers/bimface/bimface_external.ts:12
• viewer3D: any
Defined in src/providers/bimface/bimface_external.ts:13
▸ add(name
: string, url
: string): Promise‹string›
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:25
Parameters:
Name | Type |
---|---|
name |
string |
url |
string |
Returns: Promise‹string›
▸ clear(): void
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:37
Returns: void
▸ getAllObjectIds(): string[]
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:79
获取所有外部构件的ID
Returns: string[]
▸ getPosition(objectId
: string): Position
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:73
获取外部构件的世界坐标
Parameters:
Name | Type | Description |
---|---|---|
objectId |
string | 外部构件id |
Returns: Position
▸ offset(objectId
: string, option
: OffsetOption): void
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:53
Parameters:
Name | Type |
---|---|
objectId |
string |
option |
OffsetOption |
Returns: void
▸ removeById(objectId
: string): void
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:34
Parameters:
Name | Type |
---|---|
objectId |
string |
Returns: void
▸ rotate(objectId
: string, option
: RotateOption): void
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:40
Parameters:
Name | Type |
---|---|
objectId |
string |
option |
RotateOption |
Returns: void
▸ scale(objectId
: string, option
: ScaleOption): void
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:56
Parameters:
Name | Type |
---|---|
objectId |
string |
option |
ScaleOption |
Returns: void
▸ setPosition(objectId
: string, position
: Position): void
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:62
Parameters:
Name | Type |
---|---|
objectId |
string |
position |
Position |
Returns: void
▸ translate(objectId
: string, option
: TranslateOption): void
Implementation of IExternal
Defined in src/providers/bimface/bimface_external.ts:65
Parameters:
Name | Type |
---|---|
objectId |
string |
option |
TranslateOption |
Returns: void