HiddenCalculus
Canonical path: NemAll_Python_Geometry.HiddenCalculus
Hidden calculation service implementation, user part.
This template over HiddenCalculusImpl implements type safe tag storing for hidden calculation. It holds the vector of all used tags and convert them to void* needed in HiddenCalculusImpl.
AddElement
AddElement(
elementGeometry: object, elenentMaterial: HiddenMaterial, elementTag: int
)
Add element geometry to hidden world.
Parameters:
-
elementGeometry
(object
) –Element geometry.
-
elenentMaterial
(HiddenMaterial
) –Element material.
-
elementTag
(int
) –Tag transferred over hidden calculation from element to line.
Configure
Configure(parameters: HiddenCalculationParameters)
Sets parameters of calculation.
Parameters:
-
parameters
(HiddenCalculationParameters
) –New parameters.
GetLinesCount
Gets total count of lines calculated.
Throw Exception in case of internal error and if no Calculate() was called.
Returns:
-
int
–size_t Lines count.
GetResultLine
GetResultLine(lineIndex: int) -> tuple[Line3D, eHiddenCalculationResult]
GetResultLine
throw Exception if index out of range.
Parameters:
-
lineIndex
(int
) –Index of line.
Returns:
-
tuple[Line3D, eHiddenCalculationResult]
–tuple(Line calculated by hidden itself, Result of hidden for line. Hidden visible)
GetResultLineMaterial
GetResultLineMaterial(lineIndex: int) -> HiddenMaterial
Gets hidden material of element line is from.
throw Exception if lineIndex out of range.
Parameters:
-
lineIndex
(int
) –Index of line.
Returns:
-
HiddenMaterial
–HiddenMaterial Material.
GetResultLineTag
Gets (reference to) tag hooked to element line is from.
Parameters:
-
lineIndex
(int
) –Index of line.
Returns:
-
int
–const TagType Reference to tag object.