PDA

View Full Version : PLUGIN: Knife version 1.3


Dennis
1st November 2005, 07:27 AM
All,

The Knife plugin has been updated to version 1.3.

http://supercoldmilk.com/knife.html

This release enforces a per-surface slice of all edges.

Before this release, all surfaces of the knife were thrown at the cut object at once, which sometimes caused seemingly random slicing. This fix forces a per-surface slice.

http://bellsouthpwp.net/a/t/atomicd/img/knife_ex.gif

In the above image, you see an object being sliced by a 30 surface knife.

The first slice uses the pre-1.3 knife - you can see the misplaced cuts here, and the absence of cuts along a section of the upper-left of the object.

The second slice uses the 1.3 knife - because surfaces are sliced in order, this works as expected.

This does remove a rather esoteric feature of the knife, however:

http://bellsouthpwp.net/a/t/atomicd/img/knife_ex2.gif

The left-most image shows a rectangle with two intersecting surfaces that have been Merged into one object. Not an ideal Knife, but it works.

The knife slices in the pre-1.3 version between the two surfaces.

However, in 1.3 (right-most image), because slices are performed per-surface, this slice does not take place. The vertices are inserted where expected, but there is no slice.

I believe this is still favorable to the old version. Feel free to comment on whether the old version's method would be preferable in any way.

Dennis

luuckyy
2nd November 2005, 08:14 AM
Thanks Dennis 8)

Dennis
2nd November 2005, 10:41 AM
You're welcome ;)

Also, AJ MacLeod has very courteously provided a Linux compile for version 1.3.

Enjoy,

Dennis

dern
6th November 2005, 04:36 PM
Hi,

the Linux version is missing the knife.tcl file. Copying the one from the Windows version seems to work.

Thanks for a great plugin! :-)

Nico

Dennis
6th November 2005, 06:38 PM
the Linux version is missing the knife.tcl file. Copying the one from the Windows version seems to work.

:oops:

Thanks Nico - I've added this to the Linux distributable.

The TCL files are the same file in the Linux and Windows distributables, so taking the TCL from the Windows version was fine. This does mean the tcl files end up with embedded carriage returns (0x0d), since the TCL files originate in Windows, but this seem to have posed no problems with the TCL files on any Linux flavors (of which I'm aware)...