Skip to content
Snippets Groups Projects
Commit bd4b62ce authored by Éric Béchet's avatar Éric Béchet
Browse files

MSubPoint::isInside updated.

parent 619d9b34
No related branches found
No related tags found
No related merge requests found
...@@ -318,17 +318,14 @@ bool MSubPoint::isInside(double u, double v, double w) ...@@ -318,17 +318,14 @@ bool MSubPoint::isInside(double u, double v, double w)
double v_uvw[3]; double v_uvw[3];
_orig->xyz2uvw(v_xyz, v_uvw); _orig->xyz2uvw(v_xyz, v_uvw);
double p_xyz[3] = {u, v, w}; double d_xyz[3] = {u-v_uvw[0], v-v_uvw[1], w-v_uvw[2]};
double p_uvw[3];
_orig->xyz2uvw(p_xyz, p_uvw);
double d_xyz[3] = {p_uvw[0]-v_uvw[0], p_uvw[1]-v_uvw[1], p_uvw[2]-v_uvw[2]};
double tol = _isInsideTolerance; double tol = _isInsideTolerance;
if (d_xyz[0]*d_xyz[0]+d_xyz[1]*d_xyz[1]+d_xyz[2]*d_xyz[2]<tol*tol) if (d_xyz[0]*d_xyz[0]+d_xyz[1]*d_xyz[1]+d_xyz[2]*d_xyz[2]<tol*tol)
return true; return true;
return false; return false;
} }
void MSubPoint::getIntegrationPoints(int pOrder, int *npts, IntPt **pts) void MSubPoint::getIntegrationPoints(int pOrder, int *npts, IntPt **pts)
{ {
static IntPt GQL[1]; static IntPt GQL[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment