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:
parent
57850119ba
commit
22405db699
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue