Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

Rhino.Geometry.Transform.Translation does not move all mesh vertices by the same amount

$
0
0

@thomas.k wrote:

Hello

We are working with Rhino Version 6 (6.3.18090.471, 31.03.2018) on Windows 10 x64.

After processing the buildings near the coordinate system origin in order to avoid problems with the floating-point resolution, we have to move them back to the original location in our national spatial reference system.

For that move we use a translation:

xform = Rhino.Geometry.Transform.Translation(2621232.0,1259640.0,343.0)
rhino_object.Geometry.Transform(xform)

This screenshot shows the mesh near the coordinate system origin ( X=0, Y=0, Z=0)

RhinoTranslation

image

After executing the transformation, one vertex near the ridge of the roof jumped to another mesh edge. On the screenshot ther is an offset visible.

The behavior can be reproduced with the attached python script and the Rhino model.
TranslationMovesVertex.3dm (83.9 KB)

MoveGeometry.py (1.3 KB)

Any idea what goes wrong here?

Thanks in advance
Thomas

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles