editor › Globals › SectionLengthSemantic
Class: SectionLengthSemantic
Helps to determine the measurements of plate sections, e.g. what are the 'inner' dimensions, wall thickness and outer dimensions of a box
Hierarchy
- SectionLengthSemantic
Index
Constructors
Properties
Methods
- _getExternalDelta
- _getExternalPoints
- _getMiddleDelta
- _getOffsetPointPosition
- _getSectionLength
- _getTwoPlatesOffset
- getInnerLength
- getInnerToOuterDifference
- getOuterLength
Constructors
constructor
+ new SectionLengthSemantic(section: OutlineSection): SectionLengthSemantic
Defined in src/tools/utils/SectionLengthSemantic.ts:19
Parameters:
| Name | Type |
|---|---|
section |
OutlineSection |
Returns: SectionLengthSemantic
Properties
Private Readonly isMiddlePlate
• isMiddlePlate: boolean
Defined in src/tools/utils/SectionLengthSemantic.ts:19
Private Readonly section
• section: OutlineSection
Defined in src/tools/utils/SectionLengthSemantic.ts:18
Methods
Private _getExternalDelta
▸ _getExternalDelta(section: OutlineSection): number
Defined in src/tools/utils/SectionLengthSemantic.ts:111
Parameters:
| Name | Type |
|---|---|
section |
OutlineSection |
Returns: number
Private _getExternalPoints
▸ _getExternalPoints(section: OutlineSection): object
Defined in src/tools/utils/SectionLengthSemantic.ts:76
Parameters:
| Name | Type |
|---|---|
section |
OutlineSection |
Returns: object
-
endPoint: Vector3
-
startPoint: Vector3
Private _getMiddleDelta
▸ _getMiddleDelta(section: OutlineSection): number
Defined in src/tools/utils/SectionLengthSemantic.ts:63
Parameters:
| Name | Type |
|---|---|
section |
OutlineSection |
Returns: number
Private _getOffsetPointPosition
▸ _getOffsetPointPosition(outlinePoint: OutlinePoint): Vector3
Defined in src/tools/utils/SectionLengthSemantic.ts:128
Parameters:
| Name | Type |
|---|---|
outlinePoint |
OutlinePoint |
Returns: Vector3
Private _getSectionLength
▸ _getSectionLength(): number
Defined in src/tools/utils/SectionLengthSemantic.ts:59
Returns: number
the raw length of the section
Private _getTwoPlatesOffset
▸ _getTwoPlatesOffset(plate: Plate, otherPlate: Plate): number
Defined in src/tools/utils/SectionLengthSemantic.ts:159
Parameters:
| Name | Type |
|---|---|
plate |
Plate |
otherPlate |
Plate |
Returns: number
getInnerLength
▸ getInnerLength(): number
Defined in src/tools/utils/SectionLengthSemantic.ts:29
Returns: number
the inner length of the section, taking into account space used by adjacent plates
getInnerToOuterDifference
▸ getInnerToOuterDifference(): number
Defined in src/tools/utils/SectionLengthSemantic.ts:51
Returns: number
the difference between inner and outer length
getOuterLength
▸ getOuterLength(): number
Defined in src/tools/utils/SectionLengthSemantic.ts:40
Returns: number
the outer length of the section, taking into account space used by adjacent plates