How to Translate an Imported Mesh to Centroid (0,0,0)

Follow

Learn how to translate any imported mesh to have a centroid of (0,0,0) and how to make this workflow into a compound block.

  • Add Import Mesh
  • Add Translate Object
  • Expand the Properties of the Import Mesh block
    • Expand Bounding Box
    • Expand Centroid
    • Expand Vector

imported_mesh_property_tree.png

  • Drag the Negative vector property into the Vector Input of the Translate Object block
  • Check the Properties of the Translate Object block, and see that the centroid is now (0,0,0)

To make this process quick and repeatable, follow the steps below to create a compound block

  • Create a parameter variable of the Path input in the Import Mesh block
  • Drag the Path variable up to the Input section of the Notebook
  • Turn the Translate Object block into a variable
  • Drag the Translate Object variable into the Output section
  • Add a descriptive comment for the Path variable
  • Name the Notebook something that makes sense, and give the Notebook a useful description
  • Save the file using the same name was the Notebook

Now you can import this file into any new instance of nTop Platform. Once imported, search the Notebook name in the search bar (CTRL-L) and add the new block to your notebook. From there, you can select the path of your desired mesh file to move it to the centroid (0,0,0). 

Download the attached compound block to check it out for yourself. 

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.