MeshApiExamples icon indicating copy to clipboard operation
MeshApiExamples copied to clipboard

A bug about 'CreateMeshFromWholeScene.cs' bounding box calculation

Open wuxukun opened this issue 1 year ago • 0 comments

CreateMeshFromWholeScene.cs line:188 of the script ' var b = bounds[index]; ' Must be changed to ' var b = new float3x2(new float3(float.PositiveInfinity), new float3(float.NegativeInfinity)); ' Because the ' bounds ' variable must be initialized to PositiveInfinity and NegativeInfinity. Otherwise, its initial size cannot be guaranteed.

wuxukun avatar Oct 04 '24 09:10 wuxukun