diff --git a/crates/coremem/src/geom/region/primitives.rs b/crates/coremem/src/geom/region/primitives.rs index 083ae14..0372d9f 100644 --- a/crates/coremem/src/geom/region/primitives.rs +++ b/crates/coremem/src/geom/region/primitives.rs @@ -107,7 +107,7 @@ impl HasCrossSection for Torus { let axis = self.axis(); let to_coord = *coord - *self.center(); // this creates a normal which always points "counter-clockwise" along the shape - axis.cross(to_coord) + axis.cross(to_coord).with_mag(self.cross_section()).unwrap_or_default() } }