C# what am I doing wrong/missing here? TMESH.SetNumTVerts(8 * nTotal, false); TMESH.SetTVert(v + actualVert, rng, rng, rng); C# version with UV (no…
Maxscript :UV single mesh delete objects gc() b = box width:10 height:10 lenght:10 mapcoords:true convertToMesh b pmat = StandardMaterial name:”pMat…
Didn’t know that, it brings down the original n 15 time of 0.073sec to 0.045sec but looks like that also limited to ~500k boxes (n 100) denis…
How would someone set uv coordinates with the C# version, example so every box have one unique UV / “solid color” ? With pflow I just do: pCont.setP…
yeah the c# are for sure the fastest, that’s kind of expected, tho for me its 243ms 50^3, don’t know why its like 5x slower for me.
I ran all code at 50^3 and some interesting results, the original code expected time would be 351sec took more like 2h scales really really bad, and a…
PolyTools3D: Sure. In bold are the minor changes. Original code gives me 80ms for 40^3 boxes, the improved code goes down to 28ms, almost 3X faster….
// ip.RedrawViews(0, RedrawFlags.Normal, null) PolyTools3D: With a few minor improvements to the C# version 40^3 (64000 Boxes) time: 3131 ms …
aaandres: A little more… pure C#: CODE This is very interesting. Code: : (n15 / 3375boxes) [Time: 0.033 sec] [Mem: 368L] [View Code] – Sere…
Btw: I’m updating the first original post in the thread with the improved code.
Updated the code with that.
Serejah: CODE Nice didn’t think it was gonna get faster but still got about 2x faster Made a few changes to your code to make it more like the o…
Thank you, tho from 10sec to 0.073sec is 137x faster aka 13700% speed (;
aaandres: Perhaps you should try building mesh from scratch: Your 15x15x15 cube already attached in 0.25sec or 20x20x20 in 0.43sec. Thanks, that’…
My currently fastest version: (n15 / 3375boxes) [Time: 0.073 sec] updated: [EDIT4] I[/I] fn fn_genBoxesMesh = ( gc() local timeStart = timestamp(…