In order to populate the engineering template, we need get the inputs from the design model, which are living within the Rhino model.
This requires importing the Rhino model into xGenerative Design, exporting as a STEP file and then importing this file into a new 3D product.
But before moving on, all surfaces must be assembled, or joined, using the ‘Join’ tool. Otherwise, when you try to use the surfaces in xGen, you will have to import each surface individually. It is much more convienent to have the surfaces in just one list!
Extracting Geometry with xGen
After opening the new product within xGen, you can import the joined surfaces. The current workaround for this is to click on the ‘Join’, and then click any tool, such as translate, which appears in the 3D browser. This automatically creates the connected nodes and simulaneously imports all the surfaces. Now, on to the fun part: deconstruction!
The main nodes used for the importing and extracting of inputs were:
- Dissassemble – Connecting the ‘Import’ node to this will give you the full list of surfaces
- Sub Elements – Plug the output from the ‘Disassemble’ node here to get all three vertices of each surface; main inputs for template instantiation
- Centroid – Use this node with the next one on this list; used as the reference point to get Axis Systems
- Axis System on Surface – Get Axis Systems for each surface; an main input used for the template instantiation process
- Publish – Don’t forget to add this to the final outputs! This exposes the main inputs (the three vertices/points and axis systems) for use later down the line
Next, we can start to actually use these inputs and the template created together! How exciting is that?!