#![cfg_attr(test, allow(clippy::unwrap_used))]
pub mod annotations;
pub mod appearance;
pub mod assets;
pub mod attributes;
pub mod bytes;
pub mod codec;
pub mod compare;
pub mod diff;
pub mod document;
pub mod draft;
pub mod drawings;
pub mod eval;
#[cfg(any(feature = "examples", test))]
pub mod examples;
pub mod features;
pub mod geometry;
pub mod hash;
pub mod ids;
pub mod index;
pub mod math;
pub mod native;
pub mod pmi;
pub mod presentation;
pub mod products;
mod provenance;
pub mod report;
pub mod schema;
pub mod semantic_annotations;
pub mod sketches;
pub mod source_fidelity;
pub mod spreadsheets;
pub mod subd;
pub mod tessellation;
pub mod topology;
pub mod transform;
pub mod units;
pub mod validate;
pub use annotations::{AnnotationBuilder, Annotations, ExactnessNote, StreamProvenance};
pub use codec::{
CadirEncoder, Codec, CodecBackend, Confidence, DecodeOptions, DecodeResult, Encoder,
};
pub use diff::{diff, ArenaDiff, AttributeChange, IrDiff, ModifiedEntity, SourceDiff};
pub use document::{CadIr, SourceMeta, IR_VERSION};
pub use draft::{DocumentDraft, ModelDraft};
pub use features::{
BodyRetentionMode, BodySelection, BodyTrimSide, CoilConstruction, CoilExtent, CoilPlacement,
CoilResult, CoilSection, CoilSectionPlacement, ConfigurationActivation, ConfigurationBodies,
ConfigurationId, ConfigurationName, CurveProjectionDirection, CurveProjectionDirectionState,
DesignConfiguration, DesignParameter, FaceMotion, Feature, FeatureDefinition, FeatureId,
ParameterId, ParameterPmi, ParameterValue, PmiDimensionSubtype, ScaleCenter, ScaleFactors,
SketchSpace,
};
pub use ids::{format_identity, is_valid_identity, IdentityError};
pub use native::{LossCount, Native, NativeConvertError, NativeNamespace, NativeRecord};
pub use pmi::{
DatumReference, DimensionKind, GeometricToleranceKind, PmiAnnotation, PmiDefinition,
PmiQuantity, PmiTarget, PmiValue,
};
pub use presentation::{
CameraState, PresentationDocument, PresentationId, PresentationState, ViewPresentation,
};
pub use presentation::{PresentationItem, PresentationLayer};
pub use products::{
AssemblyGraph, AssemblyGraphError, AssemblyJoint, CopyOnChangePolicy,
ExternalDocumentReference, ExternalResolution, JointId, JointKind, JointLimits, JointOperand,
Occurrence, ProductDefinition, ProductDefinitionKind, PrototypeReference,
};
pub use provenance::{Exactness, SourceObjectAssociation, SourceProvenance};
pub use report::{
CensusBasis, Check, CoverageKey, DecodeReport, EntityCensus, ExportReport, FidelityResolution,
Finding, LossCategory, LossKind, LossNote, LossTaxonomy, Severity, StrictConsequence,
ValidationReport, WritePath, SHARED_LOSS_NAMESPACE,
};
pub use sketches::{
Sketch, SketchAxis, SketchConstraint, SketchConstraintDefinition, SketchConstraintId,
SketchCoordinateAxis, SketchDistanceMeasurement, SketchEntity, SketchEntityId, SketchEntityUse,
SketchGeometry, SketchId, SketchNativeOperand, SketchPlacement, SpatialSketch,
SpatialSketchEntity, SpatialSketchEntityId, SpatialSketchEntityUse, SpatialSketchGeometry,
SpatialSketchId, SpatialSketchProfile,
};
pub use source_fidelity::{
decode_sidecar_path, DecodeSidecar, DecodeSidecarParseError, RetainedSourceRecord,
SourceFidelity, DECODE_SIDECAR_VERSION, DECODE_SIDECAR_VERSION_V1, SOURCE_FIDELITY_VERSION,
};
pub use spreadsheets::{Spreadsheet, SpreadsheetDimension, SpreadsheetId, SpreadsheetRange};
pub use subd::{
SubdEdge, SubdEdgeTag, SubdEdgeUse, SubdFace, SubdScheme, SubdSurface, SubdVertex,
SubdVertexTag,
};
pub use unknown::{NativeUnknownRecord, UnknownRecord};
pub use validate::admit::{
admit, admit_with_additional_native_identities, admit_with_annotations, filter_checks,
CATIA_ADMISSION_CHECKS, DRAFT_CORE_CHECKS, RHINO_DRAFT_CHECKS, RHINO_INSTANCE_CHECKS,
SLDPRT_EXPORT_PRECONDITION_CHECKS,
};
pub use validate::{entity_census, validate_neutral, validate_neutral_with_source_fidelity};
pub mod unknown;
#[cfg(feature = "schema")]
pub fn cadir_json_schema() -> schemars::Schema {
schemars::schema_for!(CadIr)
}
#[cfg(feature = "schema")]
pub fn decode_sidecar_json_schema() -> schemars::Schema {
schemars::schema_for!(source_fidelity::DecodeSidecar)
}
#[cfg(test)]
mod integration_tests;