Update documentation of fj-operations

This commit is contained in:
Hanno Braun 2022-03-17 18:04:01 +01:00
parent b1c3b2c2a2
commit ef3bed51f0

View File

@ -1,3 +1,9 @@
//! Connection between the Fornjot kernel and Fornjot models
//!
//! Fornjot models use the [`fj`] crate to define a shape. This crate provides
//! the connection between [`fj`] and the Fornjot kernel. It translates those
//! operations into terms the kernel can understand.
mod circle;
mod difference_2d;
mod group;
@ -9,7 +15,7 @@ use fj_debug::DebugInfo;
use fj_kernel::shape::Shape;
use fj_math::{Aabb, Scalar};
/// Implemented by all shapes
/// Implemented for all operations from the [`fj`] crate
pub trait ToShape {
/// Compute the boundary representation of the shape
fn to_shape(&self, tolerance: Scalar, debug: &mut DebugInfo) -> Shape;