Hey plaowtrakul,
I couldn’t understand the logic at the end of the script - but a little addition to the start of the script will give you close to 1m x 1m - it’s an approximation based on the U and V dimensions - so needs to be used with care. If it’s important to have exactly 1m x 1m, then you either need to:
- ensure that the input surfaces are divisible by 1 or;
- start from a specific corner of each geometry and walk along the edges, adding cells to the grid as you go (more complicated).
I hope that helps somewhat.Box Isotrim.gh (8.6 KB)