Skip to main content

Crate ogeom_doc

Crate ogeom_doc 

Source
Expand description

Document and product structure.

Elsewhere: XCAFDoc, XCAFPrs and XCAFDimTolObjects: the exchange document, which is part of DataExchange and in scope. The application framework those sit on top of is not, which is what the last paragraph here is about.

Parts, assemblies and instances with placements; colours and materials per shape and per sub-shape; layers; names and user properties; PMI and GD&T (dimensions, tolerances, datums, annotations); validation properties; transactional undo and redo; and the native persistence format.

Instancing leans directly on the location chain (docs/DATA_MODEL.md §2): an assembly of ten thousand identical fasteners is ten thousand placements over one piece of geometry, and that only works because placement is structural rather than a matrix to be compared with an epsilon.

Deliberately not a label-and-attribute tree. The capability is required; that particular design, and compatibility with anyone’s file format, are not.

Re-exports§

pub use attributes::Layer;
pub use attributes::LayerId;
pub use attributes::Material;
pub use attributes::MaterialId;
pub use attributes::Property;
pub use attributes::PropertyValue;
pub use attributes::Texture;
pub use attributes::TextureId;
pub use attributes::TextureMapping;
pub use attributes::ValidationProperties;
pub use pmi::Annotated;
pub use pmi::Callout;
pub use pmi::Datum;
pub use pmi::DatumTarget;
pub use pmi::DatumTargetKind;
pub use pmi::Dimension;
pub use pmi::GeometricTolerance;
pub use pmi::MeasureKind;
pub use pmi::Pmi;
pub use structure::Colour;
pub use structure::Document;
pub use structure::Instance;
pub use structure::Occurrence;
pub use structure::Product;
pub use structure::ProductId;
pub use structure::ProductKind;
pub use view::Note;
pub use view::View;

Modules§

attributes
The document’s attribute layer: properties, materials, layers, and validation values.
pmi
PMI: dimensions, geometric tolerances, datums, their targets, and the drawing of them.
structure
Product structure: parts, assemblies, instances with placements.
view
Saved views and standalone notes.