How to Translate an Imported Mesh to the Origin


Learn how to translate any imported mesh to have a centroid of (0,0,0) and how to turn this workflow into a custom block. For more information on building custom blocks, check out the article 1.3.0 Basics: Create a Custom Block for Lightweighting.

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


  • 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 File

Example File

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



Article is closed for comments.