> There is a strange behaviour when operating on selected faces only...
I have committed some changes, now both flip and laplacian smooth
should be work on selections.
> Seen. Nice :) Quite in the spirit of the library.
> probably some measure that penalize in some way the number of incident
> triangles over each vertex should be added.
> Trying to apply flip, even if they worsen a bit the triangulation
> quality but they make it more "topologically regular" (in the sense of
> having almost everywhere vertexes with 6 incident triangles) would be a
> great add.
I added a class (TopoEdgeFlip) in
vcg/local_optimization/tri_edge_flip.h. The corresponding metric in
the plugin is "topology" (planar). This edge flip happens if minimizes
the variance of the number of incident faces on four vertices around
the edge to flip. The number of faces adjacent to the vertex is saved
in the quality field of vertices during execution.
> I have just committed the inclusion of the curvature data in the
> optional members of the vertex.
> the adding of the optional data to vertex lead me to discover a NASTY
> "using namespace vcg"in the meshmodel.h.
> I wisely removed it triggering one zillion of trivial compilation
> errors. I patched hopefully all of them.
> I have already changed the colorize filter to use the new curvature data
> (that means that the curvature.h files under the meshcolorize dir are no
> more useful (removed, you can find them in the attic of cvs)
About this topic, I noticed that the "incremental" approach I
mentioned in earlier mail is less efficient than the current one.
Unfortunately, the current approach requires VF adjacency. In
addition, to save the curvature on vertices should save the parameters
A (area behind the summit), H, and K, with A currently saved in the
the quality field of vertices. So it is more convenient to save
directly the curvature _value_ on Q, rather than save the parameters
to calculate it.
Regards
Michele
|