Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2026 Changes in this version + const CadLibErrorExpected + const CadLibErrorFailed + const CadLibErrorInvalidJSON + const CadLibErrorInvalidUTF8 + const CadLibErrorInvalidUUID + const CadLibErrorNullPointer + const CadLibErrorRuntime + const CadLibOK + func Version() string + type AllowedFacetFaultsLevel string + const AllowedFacetFaultsLevelMild + const AllowedFacetFaultsLevelModerate + const AllowedFacetFaultsLevelSerious + type BoundingBoxParameters struct + Faces []string + type BoundingBoxResponse struct + BoundingBoxPerBody map[string]Box + BoundingBoxPerFace map[string]Box + FacesBoundingBox *Box + ModelBoundingBox Box + type Box struct + MaxX float64 + MaxY float64 + MaxZ float64 + MinX float64 + MinY float64 + MinZ float64 + type Cad struct + func Load(entry any) (*Cad, error) + func (c *Cad) BoundingBox(params *BoundingBoxParameters) (*BoundingBoxResponse, error) + func (c *Cad) CenterOfGravity(params *CenterOfGravityParameters) (*CenterOfGravityResponse, error) + func (c *Cad) Close() + func (c *Cad) Colors(params *ColorsParameters) (*ColorsResponse, error) + func (c *Cad) DetectCommonRotation(params *DetectCommonRotationParameters) (*DetectCommonRotationResponse, error) + func (c *Cad) DetectEnclosure(params *DetectEnclosureParameters) (*DetectEnclosureResponse, error) + func (c *Cad) Entities() (*EntitiesResponse, error) + func (c *Cad) GenerateComfortMapDisc(destDir string, params *GenerateComfortMapDiscParameters) (*GenerateComfortMapDiscResponse, error) + func (c *Cad) MaterialPoints(params *MaterialPointsParameters) (*MaterialPointsResponse, error) + func (c *Cad) ModelMetrics(params *ModelMetricsParameters) (*ModelMetricsResponse, error) + func (c *Cad) PlanarPatchPrimitives(params *PlanarPatchPrimitivesParameters) (*PlanarPatchPrimitivesResponse, error) + func (c *Cad) Tessellate(destDir string, params *TessellateParameters) (*TessellateResponse, error) + func (c *Cad) TessellateFaces(destDir string, params *TessellateFacesParameters) (*TessellateFacesResponse, error) + func (c *Cad) Volume(params *VolumeParameters) (*VolumeResponse, error) + type CadErrorKind string + const CadErrorKindExpected + const CadErrorKindUnexpected + type CadExpectedError struct + ErrorCode string + ErrorDetails map[string]any + func (e *CadExpectedError) Error() string + type CadUnexpectedError struct + Message string + func (e *CadUnexpectedError) Error() string + type CenterOfGravityParameters struct + Entities []string + type CenterOfGravityResponse struct + Cog Vector3 + type CirclePrimitive struct + Center Vector3 + Normal Vector3 + Radius float64 + type Color struct + Color string + EntityID string + type ColorsParameters struct + func (*ColorsParameters) UnmarshalJSON([]byte) error + func (ColorsParameters) MarshalJSON() ([]byte, error) + type ColorsResponse []Color + type DetectCommonRotationParameters struct + Faces []string + type DetectCommonRotationResponse struct + Axis Vector3 + Center Vector3 + type DetectEnclosureParameters struct + Point Vector3 + type DetectEnclosureResponse []string + type EdgeMetric struct + EntityID string + Length float64 + type EntitiesResponse []Entity + type Entity struct + Children []int32 + EntityID string + Name string + Parents []int32 + Type EntityType + type EntityType string + const EntityTypeEdge + const EntityTypeFace + const EntityTypeSheet + const EntityTypeSolid + const EntityTypeVertex + type FaceMetric struct + Area float64 + EntityID string + type GenerateComfortMapDiscParameters struct + Center Vector2 + Faces []string + Fineness float64 + FloorRadius float64 + GroundLevel *float64 + Height float64 + ResultEncoding *ResultEncoding + type GenerateComfortMapDiscResponse struct + BoundingBox *Box + NumberOfTriangles int32 + type MaterialPointsParameters struct + QueryType MaterialPointsQueryType + type MaterialPointsQueryType string + const MaterialPointsQueryTypeEntireModel + const MaterialPointsQueryTypePerBody + type MaterialPointsResponse struct + MaterialPointPerBody map[string]Vector3 + ModelMaterialPoint *Vector3 + type ModelMetricsParameters struct + type ModelMetricsResponse struct + Edges []EdgeMetric + Faces []FaceMetric + ModelSurfaceArea float64 + ModelVolume float64 + Sheets []VolumeMetric + Solids []VolumeMetric + type PatchType string + const PatchTypeCircle + const PatchTypeRectangle + type PlanarPatch struct + Circle *CirclePrimitive + Faces []string + PatchType PatchType + Rectangle *RectanglePrimitive + type PlanarPatchPrimitivesParameters struct + Faces []string + type PlanarPatchPrimitivesResponse struct + Patches []PlanarPatch + type RectanglePrimitive struct + Corners []Vector3 + Normal Vector3 + type ResultEncoding string + const ResultEncodingASCII + const ResultEncodingBinary + const ResultEncodingZippedASCII + const ResultEncodingZippedBinary + type TessellateFacesParameters struct + AllowedFacetFaultsLevel *AllowedFacetFaultsLevel + Faces []string + MaxFacetWidth *float64 + TessellationType *TessellationType + type TessellateFacesResponse struct + FaceNormals map[string]Vector3 + type TessellateParameters struct + Adaptivity *float64 + AllowedFacetFaultsLevel *AllowedFacetFaultsLevel + CalculateArea bool + FeatureSize *float64 + MaxEdgeLength *float64 + MaxFacetWidth *float64 + TessellationType *TessellationType + WriteOneFilePerFace bool + type TessellateResponse struct + NumBodies int32 + TessSurfaceArea *float64 + type TessellationType string + const TessellationTypeChordTol + const TessellationTypeMaxFacetWidth + type Vector2 struct + X float64 + Y float64 + type Vector3 struct + X float64 + Y float64 + Z float64 + type VolumeMetric struct + EntityID string + SurfaceArea float64 + Volume float64 + type VolumeParameters struct + EntityIDs []string + type VolumeResponse struct + Total float64 + Volumes map[string]float64