mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 19:14:42 +00:00
bugfix GetElapsedTime
This commit is contained in:
parent
52924b6b1c
commit
75b2407844
@ -85,7 +85,8 @@ float GetElapsedTime(CMeshO::CoordType p1,CMeshO::CoordType p2, CMeshO::CoordTyp
|
||||
float d1= Distance(p1,p2);
|
||||
float d2= Distance(p2,p3);
|
||||
if(d1+d2==0) return 0;
|
||||
float remainig_time=(d1/(d1+d2))*t;
|
||||
//float remainig_time=
|
||||
return (d1/(d1+d2))*t;
|
||||
};
|
||||
|
||||
void ComputeParticlesVelocityAndTime(CMeshO::CoordType o_p,CMeshO::CoordType n_p,CMeshO::FacePointer f,CMeshO::CoordType dir,float l,float m,float o_v,float &t,float &n_v){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user