Itoo Software Forum

Author Topic: About segment rotation  (Read 761 times)

NK2971

  • Newbie
  • *
  • Posts: 4
About segment rotation
« on: July 06, 2022, 12:56:27 PM »
Hi,

Rotating the segment with the transform node creates a margin.
Why?





iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4388
    • iToo Software
Re: About segment rotation
« Reply #1 on: July 06, 2022, 02:01:57 PM »
Hi,

This is caused by an optimization, when computing the bounding box of the transformed segment. Basically, there are two ways to compute it:

1) Trasverse each one of the transformed vertices of the segment mesh. This is precise, but slow with high poly meshes.
2) Compute the bounding box of the original mesh, rotate it and then compute the bounding of this box. This is much faster, but less precise.

Since the bounding box must be calculated multiple times, for efficiency reasons we use option 1 for the Segment node, and 2 for Transform operators.

How to fix it:

a) Apply the rotation in the Transform options of the Segment node. This approach is precise but faster, because only is calculated one time (when segment is prepared).
b) Fix gap manually, applying a negative padding in the Transform node.

Carlos Quintero
iToo Software

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: About segment rotation
« Reply #2 on: July 06, 2022, 07:21:56 PM »
Can't open the file due Max version. Please keep in mind to save your file to a lower version so other members could help you.

However, this could be an easy fix setting new X/Y/Z fixed sizes but without a scale option.
I replicate a screen img so you can check the file.
I exposed Parameters that could help you to set the right size ratio.
You can set Z rotation or even plug a Random numeric node and set it as Segment to rotate each segment. 


NK2971

  • Newbie
  • *
  • Posts: 4
Re: About segment rotation
« Reply #3 on: July 07, 2022, 04:40:36 AM »
Thank you very much.
The problem seems to have been resolved.