editor › Globals › FingerJointCoordinator
Class: FingerJointCoordinator
Fixes overlaps between cutouts of FingerJoints
Hierarchy
↳ FingerJointCoordinator
↳ CellMembraneJointCoordinator
Index
Methods
- _computeExtraSafetyMargin
- _coordinate
- _coordinatePlate
- _getMasterPlateAssignmentStrategy
- _getSafetyMargin
- _getSafetyMarginBasedOnIntersection
- _getSafetyMarginBasedOnProjection
- canCoordinateJointClass
- coordinateJointShapeChanges
- coordinateJointShapeChangesAsynchronously
Methods
Static Private _computeExtraSafetyMargin
▸ _computeExtraSafetyMargin(safetyDistance: number, cornerAngle: number, section: OutlineSection, otherSection: OutlineSection): number
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:272
Parameters:
| Name | Type |
|---|---|
safetyDistance |
number |
cornerAngle |
number |
section |
OutlineSection |
otherSection |
OutlineSection |
Returns: number
Static Protected _coordinate
▸ _coordinate(changedObjects: Set‹PhysicalObject›, fabricationConfig: FabricationConfig): Set‹PhysicalObject›
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:89
Parameters:
| Name | Type |
|---|---|
changedObjects |
Set‹PhysicalObject› |
fabricationConfig |
FabricationConfig |
Returns: Set‹PhysicalObject›
Static Private _coordinatePlate
▸ _coordinatePlate(plate: Plate, changedObjects: PhysicalObject[], fabricationConfig: FabricationConfig): boolean
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:119
Parameters:
| Name | Type |
|---|---|
plate |
Plate |
changedObjects |
PhysicalObject[] |
fabricationConfig |
FabricationConfig |
Returns: boolean
Static Protected _getMasterPlateAssignmentStrategy
▸ _getMasterPlateAssignmentStrategy(highFidelity: boolean): MasterPlateAssignmentStrategy
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:111
Parameters:
| Name | Type |
|---|---|
highFidelity |
boolean |
Returns: MasterPlateAssignmentStrategy
Static Private _getSafetyMargin
▸ _getSafetyMargin(outlinePoint: OutlinePoint, section: OutlineSection, safetyDistance: number, sanding: SandingString): number
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:169
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
outlinePoint |
OutlinePoint | - | - |
section |
OutlineSection | - | - |
safetyDistance |
number | 0 | Two cutouts on both adjacent sections should not get closer than this distance |
sanding |
SandingString | "sandable" | - |
Returns: number
Static Private _getSafetyMarginBasedOnIntersection
▸ _getSafetyMarginBasedOnIntersection(section: OutlineSection, otherSection: OutlineSection, sanding: SandingString, type: "maxAddition" | "maxCutout", positionOnSection: 1 | 0): Vector3
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:224
Parameters:
| Name | Type |
|---|---|
section |
OutlineSection |
otherSection |
OutlineSection |
sanding |
SandingString |
type |
"maxAddition" | "maxCutout" |
positionOnSection |
1 | 0 |
Returns: Vector3
Static Private _getSafetyMarginBasedOnProjection
▸ _getSafetyMarginBasedOnProjection(section: OutlineSection, otherSection: OutlineSection, sanding: SandingString, type: "maxAddition" | "maxCutout", positionOnSection: 1 | 0): Vector3
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:252
Parameters:
| Name | Type |
|---|---|
section |
OutlineSection |
otherSection |
OutlineSection |
sanding |
SandingString |
type |
"maxAddition" | "maxCutout" |
positionOnSection |
1 | 0 |
Returns: Vector3
Static canCoordinateJointClass
▸ canCoordinateJointClass(jointClass: any): boolean
Overrides JointCoordinator.canCoordinateJointClass
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:63
Parameters:
| Name | Type |
|---|---|
jointClass |
any |
Returns: boolean
Static coordinateJointShapeChanges
▸ coordinateJointShapeChanges(changedObjects: Set‹PhysicalObject›, fabricationConfig: FabricationConfig, highFidelity: boolean): Set‹PhysicalObject›
Overrides JointCoordinator.coordinateJointShapeChanges
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:67
Parameters:
| Name | Type | Default |
|---|---|---|
changedObjects |
Set‹PhysicalObject› | - |
fabricationConfig |
FabricationConfig | - |
highFidelity |
boolean | false |
Returns: Set‹PhysicalObject›
Static coordinateJointShapeChangesAsynchronously
▸ coordinateJointShapeChangesAsynchronously(changedObjects: Set‹PhysicalObject›, fabricationConfig: FabricationConfig, highFidelity: boolean): ICancellablePromise‹Set‹PhysicalObject››
Overrides JointCoordinator.coordinateJointShapeChangesAsynchronously
Defined in src/model/visualization/Joints/JointCoordination/FingerJointCoordinator.ts:26
Parameters:
| Name | Type |
|---|---|
changedObjects |
Set‹PhysicalObject› |
fabricationConfig |
FabricationConfig |
highFidelity |
boolean |
Returns: ICancellablePromise‹Set‹PhysicalObject››