Hi There. I have created tetrahedrons and I’m trying to find the normal on each of the four sides of the geometry.
I have used the attached script to do so with cubes, however in creating the tetrahedron, it has created a mesh (which i have used script to create a Brep). It is recognising that there are four normals on each side of the tetrahedron. How can I quickly and easily recreate this geometry with only four faces rather than 16?
I would really appreciate any help ASAP as I have an assignment due in 7 hours and I’m super super stuck…Tetrahedron Normals Script.gh (8.8 KB)
Tetrahedron.gh (7.6 KB)
Why do you create a Brep then convert it to a mesh and again convert it to a Brep?
You can directly get surface-normals from your Brep like this:
What I am trying to do is to grow out from that tetrahedron using mirror and scale, please see attached script. I think the reason I went back and changed it to a mesh was because I couldn’t get the geometry to generate at the other end. I’ve attached the full script here. Can you see what I am doing wrong?
Thanks very much for your help, it is greatly appreciated!
Tetrahedron-Mirror&Scale.gh (4.8 KB)
The problem is the PlatoTetra component generates an Invalid Brep. you can fix this Brep by joining its faces together, or you can create a simple pyramid without using this component.