Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] 3D surface mesh generation Query

Subject: CGAL users discussion list

List archive

[cgal-discuss] 3D surface mesh generation Query


Chronological Thread 
  • From: "Shah, Wahab" <>
  • To: "" <>
  • Subject: [cgal-discuss] 3D surface mesh generation Query
  • Date: Wed, 27 Jun 2012 15:28:30 +0200
  • Accept-language: en-US
  • Acceptlanguage: en-US



http://cgal-discuss.949826.n4.nabble.com/file/n4655245/Cylinder.jpg
http://cgal-discuss.949826.n4.nabble.com/file/n4655245/Cylinder.off
Cylinder.off
I am using 3D surface mesh generation to triangulate only part of sphere of
radius 1.

FT sphere_function (Point_3 p) {
const FT x=p.x(), y=p.y() ,z=p.z();

if(z<=0)return 1; //upper half of sphere
if(x*x+y*y>=0.25) return 1; //cap of radius=0.5
return x*x + y*y + z*z - 1; //rest isin

}
I wanted to get the cap of sphere of radius 0.5, with the above function.
The picture attached is the result i get so you can have a view of it( Also
the .off file i have attached). I do get the cap of sphere but also the
cylinder part with it, which i dont want.
Is there a way to restrict the triangulation to only the include part of
surface?. And does the Tag criteria i,e (manifold or non manifold) have an
effect on this triangulation because i am trying both but cant figure out
the difference.

----------------------------------------------------
The final goal is to i want to have triangles of approximately equal lengths
i,e equilateral triangles. So is there any other criteria in 3D surface mesh
generation i can change to accomplish this, if not, then any other package
of cgal you would suggest would be helpful to triangulate a given surface?..

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/3D-surface-mesh-generation-Query-tp4655245.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] 3D surface mesh generation Query, Shah, Wahab, 06/27/2012

Archive powered by MHonArc 2.6.18.

Top of Page