N-GONE plugin thread

Smart people ~ Great Scripts
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: N-GONE plugin thread

Post by froo »

Here's another approach, though, it's not pretty. But it will work.
With clinton's script, I did some testing, and where it identifies
a ngon, I get the coordinates of one of the vertices that is part of that
face. Then, I can add a sphere, or cube, the size of that face, at that vertex location.
A slight improvement would be to average the vertex coordinates and put an object there.
Yeah it's not pretty but you could then use the LE, to select the new objects, and go to them.
Delete them, and you see the ngon.

Hey, it's a start.
froo
Captain
Posts: 2554
Joined: 22 May 2009, 12:13

Re: N-GONE plugin thread

Post by froo »

Hm. While that can be done it's not a very good idea, because if there are
1000 ngons then we'll have 1000 new items in the scene and the LE.
That's the long and short of it.

Visualization streams are not available unless we're in edit mode. And,
in edit mode, many folks prefer to keep AutoTriangulation enabled. In
that case, the triangle and vertex streams are sorted. I'd have to get
the visualization streams unsorted before setting them: turning triangle highlighting
on and off. I had problems with that before. That would need to be resolved
before going any further with this approach.

Not using edit mode, I'd need to create a material list / material manager node,
and paint all triangles belonging to an ngon with a texture. For some reason
I really don't find this solution very appealing.

It looks like the best solution would be to enter edit mode and mess with the visualization streams. Solving this dilemna would apply to many plugins.

In any of the cases above, the user will enter edit mode to fix the ngons. Most of the time
they will end up fixing all of the ngons. If, after doing this, some vertices look out of place,
then the user will end up doing some point editing.

Therefore, we may as well use the quadrify tool available with trueSpace.
So, I don't think I will be pursuing this particular plugin anymore as it's not necessary,
since we already have a quadrify tool.

But, I would like to work with the autotriangulate issue.
Post Reply