Skip to content

editorGlobalsIJointAssembler

Interface: IJointAssembler

Hierarchy

  • IJointAssembler

Implemented by

Index

Methods

Methods

assemble

assemble(operation: CombineOperation): void

Defined in src/modules/kyub.core.plateImport/src/assemblers/IJointAssembler.ts:27

Puts the originMesh into the assembly of the destinationMesh. Then it transforms the originMesh so that the finger joints are aligned.

Parameters:

Name Type
operation CombineOperation

Returns: void


calculateTransformation

calculateTransformation(operation: CombineOperation): IAssembleTransformation

Defined in src/modules/kyub.core.plateImport/src/assemblers/IJointAssembler.ts:34

Calculates how the originMesh of this assembly has to be transformed to be assembled to a the destinationMesh with a given Joint pair by using a joint of the type of this Assembler.

Parameters:

Name Type Description
operation CombineOperation

Returns: IAssembleTransformation


isJointMatchSensible

isJointMatchSensible(originGlobalJointDirection: Vector3, originGlobalNormal: Vector3, destinationGlobalJointDirection: Vector3, destinationGlobalNormal: Vector3, flipped: boolean): boolean

Defined in src/modules/kyub.core.plateImport/src/assemblers/IJointAssembler.ts:15

Checks if a given match is sensible. This means that the jointDirections should oppose each other and the normals of the plates should be aligned as expected by the join type, so that the plates do not lie in each other

Parameters:

Name Type Description
originGlobalJointDirection Vector3 the direction of the origin Joint, in global space
originGlobalNormal Vector3 the normal of the origin mesh, in global space
destinationGlobalJointDirection Vector3 the direction of the destination Joint, in global space
destinationGlobalNormal Vector3 the normal of the destination mesh, in global space
flipped boolean is one of the plates flipped?

Returns: boolean