New NURBS tools

User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

tiger.jpg
curve import fixes finally done! :D
This is the best result I've ever gotten with these tools. I think the key was the new polygon conversion technique. So yeah, time to clean up the code and do the final pass.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

butterfly.jpg
Had one more minor bug fix and added a freeze polygons option. Default is on but when it's off it will import filled shapes as filled curves instead of converting them to normal polygon meshes. Option was off for the butterfly and the import time was much faster because hundreds of curves were not put through the freeze process. Freezing gives a cleaner result, but no freezing is much faster.
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

New Protection Test script to modify buttons for guard instead of deselectnurbs

fixes issues with some custom script buttons like truebevel
checkbox will write a log file to c:\temp\nurbsButtons4.txt without modifying the toolbar buttons
unchecked no file is written
Attachments
New Protection Test.RsObj
(44.15 KiB) Downloaded 115 times
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

It's done! ... I hope.
One more thing to test is to import an svg file and export an animation. If no problems are found then it is really done.

Attached are the scripts for unofficial update testing.

Edit: Temporary removed attachment, found one more place that has not been checked/cleaned yet.

Forgot to check the utilities section. Fixed one issue with test code and found that swap uv, and reverse u and v need conversion to "1 undo" style code.

Edit: re-uploaded
Attachments
NURBSScripts.RsObj
(2.65 MiB) Downloaded 119 times
Last edited by clintonman on 05 Aug 2021, 05:15, edited 3 times in total.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New NURBS tools

Post by trueBlue »

:bananathumb:
Would it be okay to make the Rebuild NURBS Name work the same way as the NURBS Info?
When a NURBS is selected and you open Rebuild NURBS panel, the Name will be entered into the field
NURBS panels.png
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

trueBlue wrote: 05 Aug 2021, 03:25 :bananathumb:
Would it be okay to make the Rebuild NURBS Name work the same way as the NURBS Info?
When a NURBS is selected and you open Rebuild NURBS panel, the Name will be entered into the field
NURBS panels.png
It already does that, so maybe I don't understand what you mean?
Clinton Reese

http://clintons3d.com
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

Fixed bug. The protect nurbs set button was still pointing to the old guard script location, thanks tB.

***

curve animation export was completely broken, fixed now
Last edited by clintonman on 06 Aug 2021, 20:48, edited 1 time in total.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New NURBS tools

Post by trueBlue »

I am not able to select a Curve that has been frozen on one side when Freeze Curve As Polygon is checked
If I disable Freeze Curve As Polygon and Freeze a Curve, I am able to select both sides
User avatar
clintonman
Captain
Posts: 5422
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: New NURBS tools

Post by clintonman »

trueBlue wrote: 06 Aug 2021, 14:28 I am not able to select a Curve that has been frozen on one side when Freeze Curve As Polygon is checked
If I disable Freeze Curve As Polygon and Freeze a Curve, I am able to select both sides
That's because the frozen curve only has 1 face and the unfrozen curve has 2 faces.
As an example:
create an ordinary plane, not double sided
go to object render attributes and make the edges visible so you can see the back
rotate the view to the back of the plane
select something else
if you try to select the plane, you can't
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5206
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: New NURBS tools

Post by trueBlue »

clintonman wrote: 06 Aug 2021, 15:26
trueBlue wrote: 06 Aug 2021, 14:28 I am not able to select a Curve that has been frozen on one side when Freeze Curve As Polygon is checked
If I disable Freeze Curve As Polygon and Freeze a Curve, I am able to select both sides
That's because the frozen curve only has 1 face and the unfrozen curve has 2 faces.
As an example:
create an ordinary plane, not double sided
go to object render attributes and make the edges visible so you can see the back
rotate the view to the back of the plane
select something else
if you try to select the plane, you can't
Maybe I am missing the understanding of what Freeze Curve As Polygon means
It seems to me that the code (freezeCurve, 2 script) for Freeze Curve As Polygon is opposite of what it should be
If I remove the ! in LINE 45 cmd += 'if(FreezeAsPolygon) {';
And add the ! in LINE 51 cmd += 'if(!FreezeAsPolygon) {';
Post Reply