Skip to main content

Crate cadkit_core

Crate cadkit_core 

Source
Expand description

Format-neutral CAD drawing model shared by the cadkit readers and writers.

  • model: the Document every reader produces.
  • bytes: bounds-checked little-endian reader for untrusted input.
  • svg: 2D SVG rendering of a document.

Re-exports§

pub use doc_ops::PurgeStats;
pub use error::Error;
pub use error::LimitKind;
pub use error::Result;
pub use geom::BBox;
pub use geom::Point3;
pub use geom::Vec3;
pub use geom_ops::Transform;
pub use options::Limits;
pub use options::ReadOptions;
pub use model::*;

Modules§

aci
AutoCAD Color Index (ACI) to RGB table.
bytes
Bounds-checked little-endian reader for untrusted input.
doc_ops
High-level in-place Document and Entity operations: affine transforms, unit conversion, insert explosion, group flattening, curve tessellation, layer filtering, and unused-definition purging.
error
Error type shared by all cadkit crates.
export
Validates resource budgets and float finiteness on in-memory documents before writing.
geom
Basic geometry types.
geom_ops
Geometry helpers: vector math, affine Transform, circular/elliptic arcs, polyline bulges and NURBS evaluation.
model
Format-neutral drawing model.
ops
Model traversal and derived properties: Document::walk, Document::bbox, Entity::resolved_color and EntityKind::type_name.
options
Reader options and resource limits.
polygon
Bounded validation of closed, planar polygon rings in drawing units.
svg
2D SVG rendering of a Document (top view, XY plane).
text
Text helpers shared by the DXF, DWG, and DGN readers: MTEXT format-code stripping, \U+XXXX / \M+nXXXX escape decoding, and legacy DOS/OEM single-byte code pages that encoding_rs (WHATWG) does not include. Panic-free; output size is bounded by the input.
units
Length-unit helpers: conversion to meters and DWG/DXF $INSUNITS codes.