Skip to content

editorGlobalsJointCoalignmentChecker

Class: JointCoalignmentChecker

Hierarchy

  • JointCoalignmentChecker

Index

Properties

Methods

Properties

Private referenceMeshLocalTransformsMap

referenceMeshLocalTransformsMap: Map‹SvgSurfaceDescriptor‹›, Map‹SvgSurfaceDescriptor‹›, Transforms‹››› = new Map>()

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:71

Compute or use cached transforms of other origin meshes in the

param local transforms


Static maximumPositionEqualityDistance

maximumPositionEqualityDistance: number

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:19


Static maximumRotationEqualityDistance

maximumRotationEqualityDistance: number

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:20

Methods

Private _buildMatch

_buildMatch(operation: CombineOperation, matchingJoint: ICoalignJointMatch, combinedTransforms: Transforms): IBasicJointMatch

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:167

Parameters:

Name Type
operation CombineOperation
matchingJoint ICoalignJointMatch
combinedTransforms Transforms

Returns: IBasicJointMatch


Private _checkForCoalignment

_checkForCoalignment(operation: CombineOperation, allMatchingJoints: ICoalignJointMatch[]): ICoalignmentResult

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:114

Parameters:

Name Type
operation CombineOperation
allMatchingJoints ICoalignJointMatch[]

Returns: ICoalignmentResult


Private _getLocalTransformsForOtherMeshes

_getLocalTransformsForOtherMeshes(operation: CombineOperation): Map‹SvgSurfaceDescriptor, Transforms

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:208

Parameters:

Name Type
operation CombineOperation

Returns: Map‹SvgSurfaceDescriptor, Transforms


checkForCoalignmentAndFilterDuplicates

checkForCoalignmentAndFilterDuplicates(operations: CombineOperation[]): CombineOperation[]

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:78

Given a list of operations, this method makes sure that they all have coalignment results. It then filters them for duplicates (no two operations should have the same assembling effect), and also filters them to have a non-negative coalignment score.

Parameters:

Name Type
operations CombineOperation[]

Returns: CombineOperation[]


Static Private _calculateLocalTransforms

_calculateLocalTransforms(meshes: SvgSurfaceDescriptor[], originMesh: SvgSurfaceDescriptor): Map‹SvgSurfaceDescriptor, Transforms

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:32

For each mesh in @param meshes, compute local transforms in the @param originMesh system.

Parameters:

Name Type
meshes SvgSurfaceDescriptor[]
originMesh SvgSurfaceDescriptor

Returns: Map‹SvgSurfaceDescriptor, Transforms


Static Private _checkCoalignmentOfJointMatch

_checkCoalignmentOfJointMatch(jointMatch: ICoalignJointMatch, transforms: Transforms): boolean

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:54

Parameters:

Name Type
jointMatch ICoalignJointMatch
transforms Transforms

Returns: boolean


Static getID

getID(match: IBasicJointMatch): string

Defined in src/modules/kyub.core.plateImport/src/assemblers/JointCoalignmentChecker.ts:22

Parameters:

Name Type
match IBasicJointMatch

Returns: string