Re: [gts-general] Newbie questions - how do I ...
Brought to you by:
popinet
From: Frederic B. <fr...@wa...> - 2002-10-20 22:27:14
|
From: "Stephane Popinet" <s.p...@ni...> > > I think I figured out how to do this. > > > > 1. create a delaunay triangulation, > > 2. add all DEM points into it, > > 3. for each polygon, > > 3a. extude it and create a strip, > > 3b. create a surface intersection between the delaunay and the > > strip (Q: Do the strip have to be closed, with a triangulated > > top and bottom ? ) > > 3c. for each face in the surface inside the strip, assign the > > associated material value, > > 3d. merge the two surfaces > > 4. create a surface for every material type and stripify it. > > > > Does it look sensible ? > > I just have to learn how to attach user data to a face. Is there a > > code example somewhere ? > > Your approach looks allright. The strip do not need triangulated top > and bottom but needs properly oriented (and high enough) side walls. What is a properly oriented side wall ? Are gts_edge_new( gts_edge_class(), v1, v2 ) and gts_edge_new( gts_edge_class(), v2, v1 ) the same edge ? Thanks, -Fred |