Skip to main content

Module models

Module models 

Source
Expand description

Model types generated from the cadlib JSON schemas.

Structs§

BoundingBoxParameters
Parameters for bounding box info query
BoundingBoxResponse
Response for bounding box query
Box
3D bounding box representation
CenterOfGravityParameters
Parameters for compute center of gravity query
CenterOfGravityResponse
Response for compute center of gravity query
CirclePrimitive
Circle approximating a planar patch
Color
Color information for an entity
ColorsParameters
Parameters for get model colors query (empty)
DetectCommonRotationParameters
Parameters for detect rotation query
DetectCommonRotationResponse
Response for detect common rotation query
DetectEnclosureParameters
Parameters for detect enclosure query
EdgeMetric
Length metric for a single edge
Entity
An entity in the CAD model topology (solids, sheets, faces, edges, vertices).
FaceMetric
Surface area metric for a single face
GenerateComfortMapDiscParameters
Parameters for comfort maps query
GenerateComfortMapDiscResponse
Response for comfort maps query
MaterialPointsParameters
Parameters for material points query
MaterialPointsResponse
Response for material points query
ModelMetricsParameters
Parameters for model metrics query
ModelMetricsResponse
Response for model metrics query
PlanarPatch
One patch of adjacent, coplanar faces, together with the primitive approximating it.
PlanarPatchPrimitivesParameters
Parameters for planar patch primitives query
PlanarPatchPrimitivesResponse
Response for planar patch primitives query
RectanglePrimitive
Rectangle approximating a planar patch
TessellateFacesParameters
Parameters for the tessellate faces query.
TessellateFacesResponse
Response for the tessellate faces query
TessellateParameters
Parameters for tessellate query
TessellateResponse
Response for tessellation query
Vector2
2D vector representation
Vector3
3D vector representation
VolumeMetric
Volume and surface area metrics for a single solid or sheet
VolumeParameters
Parameters for compute volume query
VolumeResponse
Response for volume query

Enums§

AllowedFacetFaultsLevel
Level of faults allowed in tessellation (Supported only for Parasolid models) Used in quality checks to classify the tessellation faults in three levels: mild, moderate and serious. The default is Mild, which allows only minor faults that do not significantly affect the quality of the tessellation. Moderate allows more significant faults that may affect the quality but are still acceptable for most applications. Serious allows all faults, including those that may result in a poor quality tessellation, and should be used with caution.
EntityType
Type of entity. A body is never part of the topology, since it is represented by its top-level solids or sheets.
MaterialPointsQueryType
Query type for material points
PatchType
The kind of primitive that approximates a planar patch
ResultEncoding
Encoding format for STL result data, used in some queries to control how the result is encoded (e.g. for comfort map disc)
TessellationType
Tessellation strategy (Supported only for Parasolid models) ChordTol controls curve tolerance by specifying the maximum allowable distance between a true curved edge and the straight-line chords (facet edges) used to approximate it. The MaxFacetWidth strategy uses a maximum facet width to control the maximum size of the facets, which can be more intuitive in some cases. When using MaxFacetWidth, the maxFacetWidth parameter controls the maximum width of the facets.

Type Aliases§

ColorsResponse
Response for get model colors query List of colors defined on solids and sheets
DetectEnclosureResponse
Response for detect enclosure query List of solids enclosing the input point
EntitiesResponse
Response for entities query — a flat list of all entities.