How to parametrize the surface in the scipy/numpy from the points generated in FreeCAD?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
stefankorisnik3
Posts: 101
Joined: Sun Jul 24, 2022 12:49 pm

How to parametrize the surface in the scipy/numpy from the points generated in FreeCAD?

Post by stefankorisnik3 »

Given solid object having faces, edges and vertices and so on
How can i parametrize the surface in format (x,y, f(x,y)) for the use in numpy/scipy lib?
How can i parametrize the surface to make mgrid for example?
For the example take the simple Part::Box in the FreeCAD
How can i programmatically read some points and generate map (x,y, f(x,y)) for all x and y?

The goal is to use apply this smoothing on some subsurface:
https://stackoverflow.com/questions/351 ... ith-pyplot
heda
Veteran
Posts: 1348
Joined: Sat Dec 12, 2015 5:49 pm

Re: How to parametrize the surface in the scipy/numpy from the points generated in FreeCAD?

Post by heda »

well, there is (u,v) and (x,y), for (x,y) there is always .Surface.intersect, the (u,v) you will have to figure out on your own.

beginning to think that you have promised someone to do do something but have found yourself to be in over your head...
Post Reply