editor › Globals › PlateGroupGraphFacade
Class: PlateGroupGraphFacade
Hierarchy
- PlateGroupGraphFacade
Index
Constructors
Properties
Methods
- _exploreComponent
- _getPlateBelongingToJoint
- connectedTo
- getAllConnectedPlates
- getAllConnectedPlates2
- getAllPlateGroups
- getConnectedComponentsOfSubgraph
- getEdgeJointsOfPlateGroup
- getEndsOfRounding
- getOutlineSectionForEdgeJoint
- getPlateGroupOfPlate
- getPlateGroupsBelongingToJoint
- getPlatesOfPlateGroupInLinearOrder
- getStartPlateAndCutOfRounding
- getUnfoldingComponents
- jointBetweenGroups
- localMatrixForJoint
- normalOfPlateGroup
- otherSideOfPlateGroup
- traverseJoint
- buildPlateGroupMap
Constructors
constructor
+ new PlateGroupGraphFacade(allPlateGroups: PlateGroup[]): PlateGroupGraphFacade
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:21
Parameters:
| Name | Type |
|---|---|
allPlateGroups |
PlateGroup[] |
Returns: PlateGroupGraphFacade
Properties
Private Readonly allPlateGroups
• allPlateGroups: PlateGroup[]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:21
Private Readonly plateToPlateGroup
• plateToPlateGroup: Map‹Plate, PlateGroup›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:20
Methods
Private _exploreComponent
▸ _exploreComponent(currentGroup: PlateGroup, component: PlateGroup[], missingPlateGroups: Set‹PlateGroup›, jointMap: Map‹PlateGroup, EdgeJoint[]›): void
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:357
Parameters:
| Name | Type |
|---|---|
currentGroup |
PlateGroup |
component |
PlateGroup[] |
missingPlateGroups |
Set‹PlateGroup› |
jointMap |
Map‹PlateGroup, EdgeJoint[]› |
Returns: void
Private _getPlateBelongingToJoint
▸ _getPlateBelongingToJoint(joint: Joint, plateGroup: PlateGroup): PhysicalObject‹›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:374
Parameters:
| Name | Type |
|---|---|
joint |
Joint |
plateGroup |
PlateGroup |
Returns: PhysicalObject‹›
connectedTo
▸ connectedTo(plateGroup: PlateGroup, shouldConsiderJointCallback: function): Array‹object›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:32
Parameters:
▪ plateGroup: PlateGroup
▪Default value shouldConsiderJointCallback: function= () => true
▸ (EdgeJoint: any): boolean
Parameters:
| Name | Type |
|---|---|
EdgeJoint |
any |
Returns: Array‹object›
getAllConnectedPlates
▸ getAllConnectedPlates(startPlateGroup: PlateGroup, stopPlateGroup?: PlateGroup, jointToIgnore?: EdgeJoint): Array‹[PlateGroup, EdgeJoint]›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:259
Parameters:
| Name | Type |
|---|---|
startPlateGroup |
PlateGroup |
stopPlateGroup? |
PlateGroup |
jointToIgnore? |
EdgeJoint |
Returns: Array‹[PlateGroup, EdgeJoint]›
getAllConnectedPlates2
▸ getAllConnectedPlates2(startPlateGroup: PlateGroup, stopPlateGroup?: PlateGroup, jointToIgnore?: EdgeJoint): Array‹[PlateGroup, EdgeJoint]›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:289
Parameters:
| Name | Type |
|---|---|
startPlateGroup |
PlateGroup |
stopPlateGroup? |
PlateGroup |
jointToIgnore? |
EdgeJoint |
Returns: Array‹[PlateGroup, EdgeJoint]›
getAllPlateGroups
▸ getAllPlateGroups(): PlateGroup[]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:28
Returns: PlateGroup[]
getConnectedComponentsOfSubgraph
▸ getConnectedComponentsOfSubgraph(subGraph: Set‹PlateGroup›): PlateGroup[][]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:335
Parameters:
| Name | Type |
|---|---|
subGraph |
Set‹PlateGroup› |
Returns: PlateGroup[][]
getEdgeJointsOfPlateGroup
▸ getEdgeJointsOfPlateGroup(plateGroup: PlateGroup): EdgeJoint[]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:92
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
Returns: EdgeJoint[]
getEndsOfRounding
▸ getEndsOfRounding(plateGroup: PlateGroup): Plate[]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:108
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
Returns: Plate[]
getOutlineSectionForEdgeJoint
▸ getOutlineSectionForEdgeJoint(plateGroup: PlateGroup, edgeJoint: EdgeJoint): OutlineSection
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:72
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
edgeJoint |
EdgeJoint |
Returns: OutlineSection
getPlateGroupOfPlate
▸ getPlateGroupOfPlate(plate: Plate): PlateGroup
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:82
Parameters:
| Name | Type |
|---|---|
plate |
Plate |
Returns: PlateGroup
getPlateGroupsBelongingToJoint
▸ getPlateGroupsBelongingToJoint(joint: EdgeJoint): [PlateGroup, PlateGroup]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:86
Parameters:
| Name | Type |
|---|---|
joint |
EdgeJoint |
Returns: [PlateGroup, PlateGroup]
getPlatesOfPlateGroupInLinearOrder
▸ getPlatesOfPlateGroupInLinearOrder(plateGroup: PlateGroup, startPlates: Plate[], allowCuttingJoints: boolean, useStartAsBlocked: boolean): [Plate[], Map‹Plate, Set‹Plate››]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:174
Parameters:
| Name | Type | Default |
|---|---|---|
plateGroup |
PlateGroup | - |
startPlates |
Plate[] | - |
allowCuttingJoints |
boolean | false |
useStartAsBlocked |
boolean | false |
Returns: [Plate[], Map‹Plate, Set‹Plate››]
getStartPlateAndCutOfRounding
▸ getStartPlateAndCutOfRounding(plateGroup: PlateGroup): [Plate, Joint]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:132
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
getUnfoldingComponents
▸ getUnfoldingComponents(allPlateGroups: PlateGroup[]): PlateGroup[][]
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:319
Parameters:
| Name | Type |
|---|---|
allPlateGroups |
PlateGroup[] |
Returns: PlateGroup[][]
jointBetweenGroups
▸ jointBetweenGroups(plateGroupA: PlateGroup, plateGroupB: PlateGroup): Joint | null
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:51
Parameters:
| Name | Type |
|---|---|
plateGroupA |
PlateGroup |
plateGroupB |
PlateGroup |
Returns: Joint | null
localMatrixForJoint
▸ localMatrixForJoint(plateGroup: PlateGroup, joint: Joint): Matrix4
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:77
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
joint |
Joint |
Returns: Matrix4
normalOfPlateGroup
▸ normalOfPlateGroup(plateGroup: PlateGroup): Vector3‹›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:63
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
Returns: Vector3‹›
otherSideOfPlateGroup
▸ otherSideOfPlateGroup(plateGroup: PlateGroup, side: PlateSide): PlateSide
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:67
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
side |
PlateSide |
Returns: PlateSide
traverseJoint
▸ traverseJoint(plateGroup: PlateGroup, joint: Joint): PlateGroup
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:56
Parameters:
| Name | Type |
|---|---|
plateGroup |
PlateGroup |
joint |
Joint |
Returns: PlateGroup
Static buildPlateGroupMap
▸ buildPlateGroupMap(plateGroups: Iterable‹PlateGroup›): Map‹Plate, PlateGroup›
Defined in src/modules/kyub.core.svgObjExporter/src/export/Unfolding/PlateGroupGraphFacade.ts:9
Parameters:
| Name | Type |
|---|---|
plateGroups |
Iterable‹PlateGroup› |
Returns: Map‹Plate, PlateGroup›