Skip to content

editorGlobalsJoinedPlatesContext

Class: JoinedPlatesContext

Holds information about the two involved plates required for calculating finger addition/cutouts. The JoinedPlatesContext is always specific to one of the two involved plates (e.g. thisThickness vs otherThickness)

Hierarchy

  • JoinedPlatesContext

EdgeJoinedPlatesContext

Index

Constructors

Properties

Methods

Constructors

constructor

+ new JoinedPlatesContext(thisThickness: number, otherThickness: number, angle: number, isExternal: boolean, isOtherExternal: boolean, start: Vector3‹›, end: Vector3‹›, isConvex: boolean | null, thisStiffness: number, otherStiffness: number, thisMaterialType: string, otherMaterialType: string): JoinedPlatesContext

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:37

Parameters:

Name Type Default
thisThickness number 0
otherThickness number 0
angle number 0
isExternal boolean false
isOtherExternal boolean false
start Vector3‹› new Vector3()
end Vector3‹› new Vector3()
isConvex boolean | null null
thisStiffness number 1
otherStiffness number 1
thisMaterialType string ""
otherMaterialType string ""

Returns: JoinedPlatesContext

Properties

Protected angle

angle: number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:42


Protected end

end: Vector3‹›

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:48


Protected isConvex

isConvex: boolean | null

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:49


Protected isExternal

isExternal: boolean

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:45


Protected isOtherExternal

isOtherExternal: boolean

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:46


Protected otherMaterialType

otherMaterialType: string

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:53


Protected otherStiffness

otherStiffness: number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:51


Protected otherThickness

otherThickness: number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:41


Protected start

start: Vector3‹›

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:47


Protected thisMaterialType

thisMaterialType: string

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:52


Protected thisStiffness

thisStiffness: number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:50


Protected thisThickness

thisThickness: number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:40

Methods

getAngle

getAngle(): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:67

Returns: number


getDirection2D

getDirection2D(): Vector3

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:92

Returns: Vector3


getIsConvex

getIsConvex(): boolean

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:146

Convex means that - assuming plate normals point outward from the object - the normals point away from each other. Concave means the opposite, normals point towards each other.

CONVEX

^
|
|
_______________
\
\----->
\
\
CONCAVE
_______________
|         \
|    <-----\
v           \
\

Returns: boolean

Whether the two joined plates form a convex or a concave joint.


getIsExternal

getIsExternal(): boolean

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:79

Returns: boolean


getIsOneSideFoamcore

getIsOneSideFoamcore(): boolean

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:111

Returns: boolean


getIsOtherExternal

getIsOtherExternal(): boolean

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:83

Returns: boolean


getLength

getLength(): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:96

Returns: number


getNormal2D

getNormal2D(): Vector3

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:87

Returns: Vector3


getOtherMaterialType

getOtherMaterialType(): string

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:119

Returns: string


getOtherStiffness

getOtherStiffness(): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:75

Returns: number


getOtherThickness

getOtherThickness(): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:63

Returns: number


getPosition2D

getPosition2D(startOrEnd: "start" | "end"): Vector3

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:100

Parameters:

Name Type
startOrEnd "start" | "end"

Returns: Vector3


getThisMaterialType

getThisMaterialType(): string

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:115

Returns: string


getThisStiffness

getThisStiffness(): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:71

Returns: number


getThisThickness

getThisThickness(): number

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:59

Returns: number


Static flipRoles

flipRoles(startOrEnd: "start" | "end"): "start" | "end"

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:11

Parameters:

Name Type
startOrEnd "start" | "end"

Returns: "start" | "end"


Static fromPlates

fromPlates(thisPlate: Plate, other: Plate, start: Vector3, end: Vector3, isConvex: boolean | null): JoinedPlatesContext

Defined in src/model/visualization/Joints/Renderer/FingerRendering/JoinedPlatesContext.ts:15

Parameters:

Name Type Default
thisPlate Plate -
other Plate -
start Vector3 new Vector3()
end Vector3 new Vector3()
isConvex boolean | null -

Returns: JoinedPlatesContext