Skip to content

editorGlobalsVerticalConfigCalculator

Class: VerticalConfigCalculator

Calculates VerticalConfig (= height of cutouts and additions) based on the involved plates and fabrication settings so that shape changes can be calculated based on these values

Hierarchy

  • VerticalConfigCalculator

Index

Methods

Methods

Static Private _calculateAcuteAngleAdditions

_calculateAcuteAngleAdditions(angle: number, materialThickness: number, paperLayerThickness: number): object

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:309

This methods calculates the required distances for the addition and the cutout of finger joint on an angle less than 90 degrees (Acute).

Only use this method when using the foamcore material!

Further details: @see VerticalConfigCalculator_documentation.svg

Parameters:

Name Type Description
angle number The angle between the two plates.
materialThickness number The materials thickness.
paperLayerThickness number The thickness of the paper layer.

Returns: object

  • additionDistance: number

  • cutoutDistance: number


Static Private _calculateFoamcoreAngleAdditions

_calculateFoamcoreAngleAdditions(verticalConfig: VerticalConfig, joinedPlatesContext: JoinedPlatesContext, fabricationConfig: FabricationConfig): void

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:255

this method calculates the required length for the finger joints depending on the angle between the two plates. This method only works in combination with using the foamcore material.

Angle more than 90 degrees (Obtuse): The cutout and addition lengths get increased by a value of XYZ.

Angle less than 90 degrees (Acute): The cutout and addition lengths get decreased by a value of XYZ.

Angle of 90 degree (Right): The cutout and addition lengths get decreased by the value of the material elongation. This value is defined in the defaultConfig and applied to the FabricationConfig.

Further details: @see VerticalConfigCalculator_documentation.svg

Parameters:

Name Type Description
verticalConfig VerticalConfig The verticalConfig.
joinedPlatesContext JoinedPlatesContext The JoinedPlatesContext of the two involved plates.
fabricationConfig FabricationConfig The fabricationConfig.

Returns: void


Static Private _calculateObtuseAngleAdditions

_calculateObtuseAngleAdditions(angle: number, materialThickness: number, creaseDistance: number): object

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:339

This methods calculates the required distances for the addition and the cutout of finger joint on an angle greater than 90 degrees (Obtuse).

Only use this method when using the foamcore material!

Further details: @see VerticalConfigCalculator_documentation.svg

Parameters:

Name Type Description
angle number The angle between the two plates.
materialThickness number The materials thickness.
creaseDistance number The crease distance.

Returns: object

  • additionDistance: number

  • cutoutDistance: number


Static Private _clampAddition

_clampAddition(angle: number, joinedPlatesContext: JoinedPlatesContext, handler: VerticalConfigCalculationHandler, maxAdditionLength: number): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:352

Parameters:

Name Type
angle number
joinedPlatesContext JoinedPlatesContext
handler VerticalConfigCalculationHandler
maxAdditionLength number

Returns: number


Static Private _clampVerticalConfig

_clampVerticalConfig(verticalConfig: VerticalConfig, joinedPlatesContext: JoinedPlatesContext, handler: VerticalConfigCalculationHandler, fabricationConfig: FabricationConfig): void

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:187

Parameters:

Name Type
verticalConfig VerticalConfig
joinedPlatesContext JoinedPlatesContext
handler VerticalConfigCalculationHandler
fabricationConfig FabricationConfig

Returns: void


Static Private _getHandler

_getHandler(joinedPlatesContext: JoinedPlatesContext, fabricationConfig: FabricationConfig, getOppositeHandler: boolean): VerticalConfigCalculationHandler

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:162

This method determines which handler to use for the current plate.

Parameters:

Name Type Default Description
joinedPlatesContext JoinedPlatesContext - The JoinedPlatesContext of the two involved plates.
fabricationConfig FabricationConfig - The fabrication-sepcific settings for the plate.
getOppositeHandler boolean false Set to true to get the handler of the opposite plate.

Returns: VerticalConfigCalculationHandler


Static Private _getMaxLength

_getMaxLength(joinedPlatesContext: JoinedPlatesContext): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:375

This method calculates the maximum possible length of a finger joint based on the material thicknesses of the two involved plates.

Parameters:

Name Type Description
joinedPlatesContext JoinedPlatesContext The JoinedPlatesContext of the two involved plates.

Returns: number


Static Private _mapInterval

_mapInterval(value: number, start: number, end: number, targetStart: number, targetEnd: number): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:379

Parameters:

Name Type
value number
start number
end number
targetStart number
targetEnd number

Returns: number


Static determineVerticalConfig

determineVerticalConfig(joinedPlatesContext: JoinedPlatesContext, fabricationConfig: FabricationConfig): VerticalConfig

Defined in src/model/visualization/Joints/Renderer/FingerRendering/VerticalConfigCalculator.ts:129

Determines the heights of cutouts and additions based on the current fabricationConfig

Parameters:

Name Type Description
joinedPlatesContext JoinedPlatesContext The JoinedPlatesContext of the two involved plates.
fabricationConfig FabricationConfig The fabrication-specific settings for the plate.

Returns: VerticalConfig