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

What is the code inside the Distance Wrapper component? #1

Open
marialarsson opened this issue Nov 6, 2020 · 1 comment
Open

What is the code inside the Distance Wrapper component? #1

marialarsson opened this issue Nov 6, 2020 · 1 comment

Comments

@marialarsson
Copy link

Hello! Thank you for this library!

I am trying to create a mesh from a self-defined distance function.
So, I want to connect my own python component to the "Isosurface Distance Function Component."

But the codes that you have shared here do not contain all the information I need to do so..
I do not know what is inside the "D" of the input to the "Isosurface Distance Function Component."

If you would not mind sharing the code inside the "Distance Wrapper Component" (or another component that outputs "D")... then I can read that code and write my output in the same way.

Thank you,
Maria

@worbit
Copy link
Contributor

worbit commented Nov 6, 2020

Hello Maria,

thank you very much for your interest. Making Axolotl extendable for custom SDF objects is something I have on my TODO list for a while already. You are posting the issue in the old version of the library, written in Python, where this is indeed very straightforward. Your Python script just needs to output an object, that has a get_distance(x,y,z) function. This directly makes it compatible with all other objects to be combined in a CSG tree.
However, you refer in your question to the Distance Wrapper component. This is something only available in the newer version of Axolotl, written in C#. Python objects will therefore not directly work with the rest of the components. The distance wrapper object in particular is a component, that tries to convert existing Rhino geometry objects into distance objects. If you tell me a bit more about what it is you would like to do, we can try to find a way of how to integrate this.

Best, Mathias

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

2 participants