Changeset 18486
- Timestamp:
- 09/09/14 02:31:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/bamg/Mesh.cpp
r18455 r18486 3143 3143 3144 3144 /*First, insert old points if requested*/ 3145 if 3145 if(KeepVertices && (&Bh != this) && (nbv+Bh.nbv< maxnbv)){ 3146 3146 if (verbose>5) _printf_(" Inserting initial mesh points\n"); 3147 bool pointsoutside = false; 3147 3148 for (i=0;i<Bh.nbv;i++){ 3148 3149 BamgVertex &bv=Bh[i]; 3150 /*Do not insert if the point is outside*/ 3151 long long det3[3]; 3152 Triangle* tcvj=TriangleFindFromCoord(bv.i,det3); 3153 if(tcvj->det<0){ 3154 pointsoutside = true; 3155 continue; 3156 } 3149 3157 if (!bv.GeomEdgeHook){ 3150 3158 vertices[nbv].r = bv.r; … … 3153 3161 } 3154 3162 } 3163 if(pointsoutside) _printf_("WARNING: One or more points of the initial mesh fall outside of the geometric boundary\n"); 3155 3164 Bh.CreateSingleVertexToTriangleConnectivity(); 3156 3165 InsertNewPoints(nbvold,NbTSwap,bamgopts->random);
Note:
See TracChangeset
for help on using the changeset viewer.