Blender Git Loki

Git Commits -> Revision f77d6e4

August 10, 2021, 01:35 (GMT)
Fix: Avoid floating point error in some mesh primitive nodes

Some mesh primitives created using geometry nodes use loops to create
vertices and accumulates positions/angles in FP variables. This allows
rounding errors to accumulate and can introduce significant errors.

To minimize changes from original implementation, variables allowing
errors to accumulate are replaced by: delta * index. Affected Mesh
Primitives nodes are Line, Grid, Cylinder, Circle, Cone, and UV-Sphere.

Differential Revision: https://developer.blender.org/D12136

Commit Details:

Full Hash: f77d6e4b90193d607d27aad39006448ae32e928b
Parent Commit: f554c89
Committed By: YimingWu
Lines Changed: +20, -27

5 Modified Paths:

/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc (+5, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc (+2, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_grid.cc (+6, -8) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc (+1, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_uv_sphere.cc (+6, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021