Subversion Repositories gelsvn

Rev

Rev 630 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 630 Rev 666
Line 32... Line 32...
32
    /** \brief Stitch together edges whose endpoints coincide geometrically. 
32
    /** \brief Stitch together edges whose endpoints coincide geometrically. 
33
     This function allows you to create a mesh as a bunch of faces and then stitch these together
33
     This function allows you to create a mesh as a bunch of faces and then stitch these together
34
     to form a coherent whole. What this function adds is a spatial data structure to find out
34
     to form a coherent whole. What this function adds is a spatial data structure to find out
35
     which vertices coincide. The return value is the number of edges that could not be stitched. 
35
     which vertices coincide. The return value is the number of edges that could not be stitched. 
36
     Often this is because it would introduce a non-manifold situation.*/
36
     Often this is because it would introduce a non-manifold situation.*/
37
    int stitch_mesh(Manifold& m);
37
    int stitch_mesh(Manifold& m, double rad);
38
 
38
 
39
    /** \brief Stitches the mesh together, splits edges that could not be stitched and goes again.
39
    /** \brief Stitches the mesh together, splits edges that could not be stitched and goes again.
40
     This function thereby handles situations where stitch mesh would not have worked. */
40
     This function thereby handles situations where stitch mesh would not have worked. */
41
    void stitch_more(Manifold& m);
41
    void stitch_more(Manifold& m, double rad);
42
 
42
 
43
    /** \brief This function replaces holes by faces.
43
    /** \brief This function replaces holes by faces.
44
     It is really a simple function that just finds all loops of edges next to missing faces. */
44
     It is really a simple function that just finds all loops of edges next to missing faces. */
45
    void close_holes(Manifold& m);
45
    void close_holes(Manifold& m);
46
    
46
    
-
 
47
    /** \brief Flip the orientation of a mesh.
-
 
48
     After calling this function, normals will point the other way and clockwise becomes 
-
 
49
     counter clockwise */
-
 
50
    void flip_orientation(Manifold& m);
-
 
51
    
-
 
52
    /** Remove valence two vertices. */
-
 
53
    void remove_valence_two_vertices(Manifold & m);
-
 
54
 
-
 
55
    
47
}
56
}
48
 
57
 
49
#endif
58
#endif
50
 
59