mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-14 14:58:29 +00:00
Implement Debug
for FloatingCurve
This commit is contained in:
parent
db56c4fa54
commit
fe04cc01d7
@ -1,3 +1,5 @@
|
|||||||
|
use std::fmt;
|
||||||
|
|
||||||
use fj_interop::{CircleApproxParams, Tolerance};
|
use fj_interop::{CircleApproxParams, Tolerance};
|
||||||
use fj_math::{Point, Vector};
|
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 {
|
pub trait CurveGeometry {
|
||||||
fn clone_curve_geometry(&self) -> Box<dyn CurveGeometry>;
|
fn clone_curve_geometry(&self) -> Box<dyn CurveGeometry>;
|
||||||
fn vector_from_local_point(&self, point: Point<1>) -> Vector<3>;
|
fn vector_from_local_point(&self, point: Point<1>) -> Vector<3>;
|
||||||
|
Loading…
Reference in New Issue
Block a user