Nurbs editor

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
microelly2
Posts: 4630
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nurbs editor

Postby microelly2 » Tue Jul 12, 2016 6:03 pm

Using two dialers I can walk through the poles.
And another dialer for changing the height of the current pole.
https://youtu.be/xHfwrky-nX4
bp_057.png
bp_057.png (241.52 KiB) Viewed 2246 times
my test under workload: a model with 10 000 poles recomputes in 2.5 sec.
this is a good result to get the ZSurf4 functionality running inside FreeCAD.
User avatar
microelly2
Posts: 4630
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nurbs editor

Postby microelly2 » Thu Jul 14, 2016 4:45 pm

added some complex operations:
elevate a rectangle, a circle or a uv line
create a simple wave pattern
bp_060.png
bp_060.png (191.73 KiB) Viewed 2088 times
https://github.com/microelly2/reconstru ... bs_pool.py
https://github.com/microelly2/reconstru ... s_waves.py
https://youtu.be/j-vcTKNb-B8


playing with the control points to get hard edges and planar faces
bp_061.png
bp_061.png (163.19 KiB) Viewed 2088 times
It's interesting to see the render opportunities for surfaces here:
viewtopic.php?f=22&t=16526&start=10#p130827
User avatar
microelly2
Posts: 4630
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nurbs editor

Postby microelly2 » Fri Jul 15, 2016 4:38 pm

Added functionality:

change the weight of the poles
select poles by mouse
walk through the pole grid

https://youtu.be/e9_dBCfcZnM
User avatar
easyw-fc
Posts: 2803
Joined: Thu Jul 09, 2015 9:34 am

Re: Nurbs editor

Postby easyw-fc » Fri Jul 15, 2016 8:08 pm

microelly2 wrote: It's interesting to see the render opportunities for surfaces here:
viewtopic.php?f=22&t=16526&start=10#p130827
Hi @microelly2
I have found a nice video for reverse engineering
http://cdn-streaming.spaceclaim.com/Rev ... view_D.mp4
reverse-engineering.png
reverse-engineering.png (518.48 KiB) Viewed 2046 times
do you think something like that could be implemented as WB in FrreeCAD for reverse engineering module?
User avatar
microelly2
Posts: 4630
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nurbs editor

Postby microelly2 » Fri Jul 15, 2016 8:35 pm

easyw-fc wrote: do you think something like that could be implemented as WB in FrreeCAD for reverse engineering module?
At least I have the ideas what to do.
I have worked last weeks on image processing and point cloud evaluation and there a good methods to approximate these data. Writing for each method an easy to use interface is time consuming. I hope to connect all these pieces sometime. My target application at the moment is to create a landscape model with my pupils using gps track data from their androids and recreate models of building on base of photos.
At the moment I work on two workbenches: the reconstruction workbench with the fundamental methods and the geodata workbench as a use case.
Overall it's a lot to do but methods will come step by step.
User avatar
microelly2
Posts: 4630
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nurbs editor

Postby microelly2 » Mon Jul 18, 2016 7:57 pm

The nurbs editor dialog opens as a tab in the combo view.
The (first) commands are available from the nurbs editor dialog.
Transaction support: undo actions

https://youtu.be/AE0j9PErfHY
User avatar
microelly2
Posts: 4630
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nurbs editor

Postby microelly2 » Wed Jul 20, 2016 11:56 am

On the way to write a tutorial about nurbs basics I found this
http://www.bluesmith.co.uk/LW/theoryBuilders/nurbs1.htm

and a wounderful collection of tutorials how to work with nurbs :shock: :geek:
http://www.aliasworkbench.com/
Here we can see the pie menu and a lot of other things in action.
so where to set the priorities :roll:
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Nurbs editor

Postby NormandC » Wed Jul 20, 2016 3:39 pm

Very nice find microelly2! :)

I like that it compares NURBS to engineering CAD and to polygon modelling.
microelly2 wrote:so where to set the priorities :roll:
:D
triplus
Posts: 9278
Joined: Mon Dec 12, 2011 4:45 pm

Re: Nurbs editor

Postby triplus » Wed Jul 20, 2016 4:01 pm

microelly2 wrote:The nurbs editor dialog opens as a tab in the combo view.
Definitely an improvement.
The (first) commands are available from the nurbs editor dialog.
Under actions you have a drop down menu of i guess tools that actually do something. Could you put them in toolbar instead? Clicking on individual tool wouldn't open any sidebar instead it would be applied on the selection. When selecting control point controls from the current sidebar could be available as control point properties in the sidebar instead. Buttons that are currently used from the sidebar to move selection between control points can be added to separate toolbar.
Here we can see the pie menu and a lot of other things in action.
If you will follow the above advice you will already have PieMenu support and i guess support for standard FreeCAD workflow.
User avatar
microelly2
Posts: 4630
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: Nurbs editor

Postby microelly2 » Wed Jul 20, 2016 7:40 pm

triplus wrote:[

Under actions you have a drop down menu of i guess tools that actually do something. Could you put them in toolbar instead? Clicking on individual tool wouldn't open any sidebar instead it would be applied on the selection. When selecting control point controls from the current sidebar could be available as control point properties in the sidebar instead. Buttons that are currently used from the sidebar to move selection between control points can be added to separate toolbar.
At the moment the gui changes with every new idea. Pie menu IS the tool to make the interaction fast, so I will put functionality to it when it is ready,
at the moment I look for fast nurbs background methods and I have learned a lot last days. So I collect the news in my QComboBox for testing.
There is still a lot to do: basic operation on nurbs, shape generations, ...

when I have enough functionality to build my first car I will start with a better gui. But still it's useful to see the autodesk video to see what makes sense and how to arrange.

Image