normal_determinant is not real

This commit is contained in:
Quaternions 2023-11-06 17:14:20 -08:00
parent ce1e9df334
commit c321814b9b
2 changed files with 0 additions and 6 deletions

View File

@ -273,20 +273,17 @@ pub struct TransformedMesh<'a>{
mesh:&'a PhysicsMesh, mesh:&'a PhysicsMesh,
transform:&'a crate::integer::Planar64Affine3, transform:&'a crate::integer::Planar64Affine3,
normal_transform:&'a crate::integer::Planar64Mat3, normal_transform:&'a crate::integer::Planar64Mat3,
normal_determinant:Planar64,
} }
impl TransformedMesh<'_>{ impl TransformedMesh<'_>{
pub fn new<'a>( pub fn new<'a>(
mesh:&'a PhysicsMesh, mesh:&'a PhysicsMesh,
transform:&'a crate::integer::Planar64Affine3, transform:&'a crate::integer::Planar64Affine3,
normal_transform:&'a crate::integer::Planar64Mat3, normal_transform:&'a crate::integer::Planar64Mat3,
normal_determinant:Planar64
)->TransformedMesh<'a>{ )->TransformedMesh<'a>{
TransformedMesh{ TransformedMesh{
mesh, mesh,
transform, transform,
normal_transform, normal_transform,
normal_determinant,
} }
} }
pub fn brute_in(&self,body:&crate::physics::Body,time_limit:crate::integer::Time)->Option<(FaceId,crate::integer::Time)>{ pub fn brute_in(&self,body:&crate::physics::Body,time_limit:crate::integer::Time)->Option<(FaceId,crate::integer::Time)>{

View File

@ -184,7 +184,6 @@ impl PhysicsModels{
&self.meshes[self.models[model_id].mesh_id], &self.meshes[self.models[model_id].mesh_id],
&self.models[model_id].transform, &self.models[model_id].transform,
&self.models[model_id].normal_transform, &self.models[model_id].normal_transform,
self.models[model_id].normal_determinant,
) )
} }
fn model(&self,model_id:usize)->&PhysicsModel{ fn model(&self,model_id:usize)->&PhysicsModel{
@ -676,7 +675,6 @@ pub struct PhysicsModel{
attr_id:usize, attr_id:usize,
transform:crate::integer::Planar64Affine3, transform:crate::integer::Planar64Affine3,
normal_transform:crate::integer::Planar64Mat3, normal_transform:crate::integer::Planar64Mat3,
normal_determinant:Planar64,
} }
impl PhysicsModel{ impl PhysicsModel{
@ -687,7 +685,6 @@ impl PhysicsModel{
attr_id, attr_id,
transform, transform,
normal_transform, normal_transform,
normal_determinant:normal_transform.determinant(),
} }
} }
} }