Implement Debug for FloatingCurve

This commit is contained in:
Hanno Braun 2025-05-05 12:19:10 +02:00
parent db56c4fa54
commit fe04cc01d7

View File

@ -1,3 +1,5 @@
use std::fmt;
use fj_interop::{CircleApproxParams, Tolerance};
use fj_math::{Point, Vector};
@ -107,6 +109,14 @@ impl Clone for FloatingCurve {
}
}
impl fmt::Debug for FloatingCurve {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("FloatingCurve")
.field("inner", &(self.inner.as_ref() as *const _))
.finish()
}
}
pub trait CurveGeometry {
fn clone_curve_geometry(&self) -> Box<dyn CurveGeometry>;
fn vector_from_local_point(&self, point: Point<1>) -> Vector<3>;