mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
Trisurface modified with new data structure
This commit is based on changes to geometry class of phasicFlow (version 1.0)
This commit is contained in:
@ -31,7 +31,7 @@ real surface( const realx3& p1, const realx3& p2, const realx3& p3)
|
|||||||
{
|
{
|
||||||
realx3 V1 = p2 - p1;
|
realx3 V1 = p2 - p1;
|
||||||
realx3 V2 = p3 - p1;
|
realx3 V2 = p3 - p1;
|
||||||
return abs((cross(V1,V2)).length()/2.0);
|
return abs((cross(V1,V2)).length()/(real)2.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
INLINE_FUNCTION_HD
|
INLINE_FUNCTION_HD
|
||||||
|
Reference in New Issue
Block a user