From c321814b9b95073d0aca4169d84c65d1a9c2fb55 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 6 Nov 2023 17:14:20 -0800 Subject: [PATCH] normal_determinant is not real --- src/model_physics.rs | 3 --- src/physics.rs | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/model_physics.rs b/src/model_physics.rs index a080a4e..ebfee3a 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -273,20 +273,17 @@ pub struct TransformedMesh<'a>{ mesh:&'a PhysicsMesh, transform:&'a crate::integer::Planar64Affine3, normal_transform:&'a crate::integer::Planar64Mat3, - normal_determinant:Planar64, } impl TransformedMesh<'_>{ pub fn new<'a>( mesh:&'a PhysicsMesh, transform:&'a crate::integer::Planar64Affine3, normal_transform:&'a crate::integer::Planar64Mat3, - normal_determinant:Planar64 )->TransformedMesh<'a>{ TransformedMesh{ mesh, transform, normal_transform, - normal_determinant, } } pub fn brute_in(&self,body:&crate::physics::Body,time_limit:crate::integer::Time)->Option<(FaceId,crate::integer::Time)>{ diff --git a/src/physics.rs b/src/physics.rs index 48025ae..f66b683 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -184,7 +184,6 @@ impl PhysicsModels{ &self.meshes[self.models[model_id].mesh_id], &self.models[model_id].transform, &self.models[model_id].normal_transform, - self.models[model_id].normal_determinant, ) } fn model(&self,model_id:usize)->&PhysicsModel{ @@ -676,7 +675,6 @@ pub struct PhysicsModel{ attr_id:usize, transform:crate::integer::Planar64Affine3, normal_transform:crate::integer::Planar64Mat3, - normal_determinant:Planar64, } impl PhysicsModel{ @@ -687,7 +685,6 @@ impl PhysicsModel{ attr_id, transform, normal_transform, - normal_determinant:normal_transform.determinant(), } } }