Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Round number #119

Closed
Emilien-Etadam opened this issue Dec 7, 2022 · 4 comments
Closed

Round number #119

Emilien-Etadam opened this issue Dec 7, 2022 · 4 comments

Comments

@Emilien-Etadam
Copy link
Contributor

freecad_uyXJboBFfT

I m starting to play with the nodes but I'm stuck on a problem, I cant round a number to avoid this :
t0YVQtJir5

@j8sr0230
Copy link
Owner

j8sr0230 commented Dec 7, 2022

I'm thrilled that so many are looking into FreeCAD Nodes:) You are absolutely right, there are still some important mathematical nodes missing, which I will code soon. If you want to quickly create your own nodes, I recommend the Python node, with which you can quickly implement any function. However, your problem can be solved without additional nodes. I would do it like this:

parametric_bearing

The core of the solution is the Discretize node, which can be used to discretize curves into sections of equal length. The appropriate length is given by the circumference of the circle. Have fun wiring ;)

@Emilien-Etadam
Copy link
Contributor Author

Perfect ! I didn't see Discretize node yet. I tried the python node but I didnt understand how it's works... btw my knowledge on python is poor.... if not I will help to code nodes !
Thanks again !

@FlachyJoe
Copy link
Contributor

Hi,
the required math functions can be done with a PyScript node (Keep in mind In and Out are lists).
Capture d’écran_2022-12-08_20-48-59

@Emilien-Etadam
Copy link
Contributor Author

Ok now I see how it's works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants