« Return to Thread: Improving the list of nurbs curves plugins

Re: Improving the list of nurbs curves plugins

by bART Janssens-2 :: Rate this Message:

Reply to Author | View in Thread

On Mon, Apr 28, 2008 at 2:36 PM, Carsten Haubold <CarstenHaubold@...> wrote:
> Hmm, if you have 3 CVs which had different multiplicity, should they be
> changed to the same value or to the same amout?
> Well if you'd select one CV with this tool you might change it to your needs
> but.. Hum perhaps a boolean which of the two ways to choose?

I think a SetMultiplicity plugin would be the more important of the
two. After what Joe said, a plugin to make a sharp corner (by altering
multiplicity) would probably be even more important, since I guess
this is the main reason for editing multiplicity. All could of course
refer to the same basic function that adapts the knot multiplicity.

> I'm confronted with another issue here: I just noticed that if I merge two
> CVs and remove the points from the mesh::points vector, I need to change all
> indices referring to the points.. Is there any better way to do this? Or
> should I just let the unused point in there not being referenced?
>  I dont think the latter is a good idea, but the most easy one :).

The most complete way to address this would be to create additional
methods in k3dsdk/mesh_topology_data.h that can be used to see what
components are using a vertex. For example, you could add a
create_vertex_nurbs_curve_lookup, that would list the nurbs curves for
each vertex. When joining cuves, you should then check if the merged
point is used by other components, and if it is it has to be left in
the array.
Points that become unused can (and should) be removed, but this
requires keeping a mapping from the old point indices to the new
indices, and using that mapping to adapt all indices in the mesh.
Since this will probably come up more often, perhaps that should be
split off in a function in k3dsdk/mesh_operations.h, i.e.
remove_points(k3d::mesh& Mesh, const k3d::mesh::indices_t&
PointsToRemove)

Regards,

--
Bart

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
K3d-development mailing list
K3d-development@...
https://lists.sourceforge.net/lists/listinfo/k3d-development

 « Return to Thread: Improving the list of nurbs curves plugins