editor › Globals › CrossJointAssembler
Class: CrossJointAssembler
Hierarchy
- CrossJointAssembler
Implements
Index
Methods
- assemble
- calculateTransformation
- isJointMatchSensible
- _calculateRotation
- _calculateTranslation
- _computeHalfLine
- _transformSourceMesh
Methods
assemble
▸ assemble(operation: CombineOperation): void
Implementation of IJointAssembler
Defined in src/modules/kyub.core.plateImport/src/assemblers/CrossJointAssembler.ts:125
Puts the originMesh into the assembly of the destinationMesh. Then it transforms the originMesh so that the cross joints are aligned.
Parameters:
| Name | Type |
|---|---|
operation |
CombineOperation |
Returns: void
calculateTransformation
▸ calculateTransformation(operation: CombineOperation): IAssembleTransformation
Implementation of IJointAssembler
Defined in src/modules/kyub.core.plateImport/src/assemblers/CrossJointAssembler.ts:130
Parameters:
| Name | Type |
|---|---|
operation |
CombineOperation |
Returns: IAssembleTransformation
isJointMatchSensible
▸ isJointMatchSensible(originGlobalJointDirection: Vector3, originGlobalNormal: Vector3, destinationGlobalJointDirection: Vector3, destinationGlobalNormal: Vector3): boolean
Defined in src/modules/kyub.core.plateImport/src/assemblers/CrossJointAssembler.ts:92
Parameters:
| Name | Type |
|---|---|
originGlobalJointDirection |
Vector3 |
originGlobalNormal |
Vector3 |
destinationGlobalJointDirection |
Vector3 |
destinationGlobalNormal |
Vector3 |
Returns: boolean
Static Private _calculateRotation
▸ _calculateRotation(operation: CombineOperation): Quaternion
Defined in src/modules/kyub.core.plateImport/src/assemblers/CrossJointAssembler.ts:58
Parameters:
| Name | Type |
|---|---|
operation |
CombineOperation |
Returns: Quaternion
Static Private _calculateTranslation
▸ _calculateTranslation(operation: CombineOperation, rotation: Quaternion): Vector3
Defined in src/modules/kyub.core.plateImport/src/assemblers/CrossJointAssembler.ts:83
Parameters:
| Name | Type |
|---|---|
operation |
CombineOperation |
rotation |
Quaternion |
Returns: Vector3
Static Private _computeHalfLine
▸ _computeHalfLine(joint: CrossJoint): object
Defined in src/modules/kyub.core.plateImport/src/assemblers/CrossJointAssembler.ts:20
Computes the half line ("Halbgerade") starting at the middle of the joint (middlePoint), pointing outward (direction)
Parameters:
| Name | Type | Description |
|---|---|---|
joint |
CrossJoint | - |
Returns: object
-
direction: Vector2
-
middlePoint: Vector2
Static Private _transformSourceMesh
▸ _transformSourceMesh(operation: CombineOperation): void
Defined in src/modules/kyub.core.plateImport/src/assemblers/CrossJointAssembler.ts:47
Parameters:
| Name | Type |
|---|---|
operation |
CombineOperation |
Returns: void