How do I use this library
Hi,
I was searching GitHub for a library to assist with creating 3d objects in a generative fashion. I came across this repo but have no idea how to use it. Do you have any demos?
Thanks, -John
Hi,
this repo is the code for the book Geometric Computation: Foundations for Design. There you will find all the info
I own the book. Still it is unclear to me how to use this library.
Open a new terminal and type pip install decodes
Once the library is downloaded and installed, create a new python file, import the library and you are ready to go.
For example:
from decodes import core
origin = core.Point()
my_point = core.Point(0, 3, 4)
print(my_point.distance(origin))
The result should be 5
Is that what you are looking for?
Hi Ruben, many thanks. I can run your example. But still working with the library and the book is frustrating to me. To achieve something like graphical output, which i consider essential for a book about geometry, it is mentioned briefly something called outies (p.21/22) is needed and sends the reader to a documentation that is nowhere to be found. It seemed to me this documentation was planned for the http://decod.es website, which never materialized and now only points to this github repo. I've seen the basic docs included here, but found not a word about outies in there.
I have forked the project and added all the information I could find to make the library run. Check the fork here
Hi Ruben, many thanks for this fork, a brilliant idea really. It will help me to get things going, as soon as I have a little time to dig a bit deeper and also update my old Rhino license. I hope I can also help you to extend these docs one day...