x


when should Mesh.Optimize() be called

for a procedurally generated / modified mesh, when should Mesh.Optimize() be called? Before or after RecalculateBounds() and RecalculateNormals() etc?

more ▼

asked Mar 15 '11 at 06:59 AM

ina gravatar image

ina
3.3k 492 551 602

Hmm, I guess it doesn't really matter but just to put them in some kind of logical order i would say: before. Never really used Mesh.Optimize() i create only very simple meshes procedurally. Maybe someone have more information on that.

Mar 15 '11 at 07:35 AM Bunny83
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Optimize() will recalculate the bounds for you, so there is no need to call RecalculateBounds() after doing an optimize.

more ▼

answered Mar 15 '11 at 01:08 PM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

why you should not include something like this in the main documentation. please let the online documentation show questions/answers related to each API in it's documentation page. unity's documentation should be much more detailed. however it's one of the best in middleware market of gameengines

Mar 15 '11 at 01:18 PM Ashkan_gc

it would be nice to have a http://php.net style documentation for unity

Mar 15 '11 at 07:38 PM ina

What about recalculatenormals?

Mar 16 '11 at 02:17 AM ina
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1366
x300
x96
x45
x35

asked: Mar 15 '11 at 06:59 AM

Seen: 1290 times

Last Updated: Mar 16 '11 at 02:17 AM