MAXON CINEMA 4D: Cinema 4D Forum Adobe After Effects Forum

Snap all vertices to nearest world grid

COW Forums : Maxon Cinema 4D

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Viktor Antonov
Snap all vertices to nearest world grid
on Nov 7, 2018 at 11:32:22 am

Hi All. I have a mesh with many vertices floating point, for example 4.24, 5.1242, etc. Can I round them up to the nearest whole number to 4, 5, etc?
Manually doing is not an option. there are about 500-1000. In the future, the models will be even more difficult. Also, if it were possible, then to the nearest 1/4 number. For example, with reference to 0.25. But first you need exactly to bind 1 cm to all vertices. Thanks

Return to posts index

Brian Jones
Re: Snap all vertices to nearest world grid
on Nov 9, 2018 at 2:27:33 am

it can be done with xpresso like this

two nulls with xpresso - one that will round the points of an object to whole numbers, one that will round to 1/4 values.
-Each setup so that anything dropped in as a child will have it's points set to rounded values.
-Works only on editable objects but won't break on parametric objects, just won't do anything.
-The 1/4 round is done by multiplying by 4 rounding then dividing by 4.
-If you really meant round up to the next highest number and not round down if less than .5 or up if more than .5 then the equations in the Formula nodes should use Ceil(Value1) not Round(Value1) (or ceil/round - not case sensitive)

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved