Question:
How do I scale a model by different factors in X, Y, Z? The Scale Object block only allows for uniform scaling.
How do I scale my part using a Ramp?
Answer:
Non-uniformly:
Instead of using the Scale Object block, use the Remap Scale Body block. This block allows you to scale the object differently in each direction.
This block is also a Toolkit, which is a combination of blocks. If you want to see how it runs, for curiosity's sake, right-click on it and select 'Export Block'. Then, open it back up in nTop to see how it is built.
With a Ramp:
Use the Remap Field block. You can read more on using that block here: Introduction to the Remap Field block
Use this setup for each direction you want to scale in:
-
- Multiply (to shrink) or Divide (to expand)
- Operand A: X, Y, or Z
- Operand B: Ramp
- Out min and Out max are the scale values.
- Multiply (to shrink) or Divide (to expand)
Comments
Thanks
Is it possible to use a field to scale the object as a function of distance? For instance, if you have a cylinder with axis as Z axis and create a scalar field that increases a scalar from 1 to 2 in positive Z direction for the length of the cylinder, can you use such a field as scale for X and Y direction? Thus a cylinder will expand with a scale that linearly depends on Z coordinate - to transform it into a truncated cone.
Hey Tristan, I recommend checking out this video (the Spatially varying and shifting part) https://support.ntop.com/hc/en-us/articles/4408249667731-Introduction-to-the-Remap-Field-block It should answer your questions. Feel free to send in a ticket if you need further assistance!
It would be nice to have the possibility to specify the Frame in this block
Please sign in to leave a comment.