Clone PolygonMesh
-
@unknownuser said:
The data has to be stored somewhere. At least for Vray, the properties are stored as an XML structure in the material's attributes.
Allright!
Can't say I havent thought about the idea to include this functionality into the plugin,
to be honest.
But the risk of feature freenzy and bloat is to big, so I probably stick to only a design/modeling tool.@unknownuser said:
Well I think I would be. I mean, this king of UI without zooming is kind of cumbersome, don't you think?
Yeah, I guess you are right. Come to think of it, you might be even more dependent of "special-nodes", displaying textures and stuff.
-
For fastest performance of "copying" a PolygonMesh use the number of points and polygons in the
new
argument. Then populate the points and finally add the polygons with indices.I agree that it'd be nice to have .dup and .clone make a fresh copy.
-
Yes, Thanks. I used that and noticed some increase in performance.
But I have kind of abandoned the PolygonMesh for now. At least during the previewing state.I experimented building my own meshclass with indexing of points. Instead of using PolygonMesh class as a Point container.
Keep arrays of indexes and a Hash containing Points. And the Transformation only deals with the uniq points(Hash) then. Quite a lot of speed improvements!
The advantage here is that I can reuse the objects somewhat, while I can't purge/clear(?) a PolygonMesh. So the GC should work a little less.
I'm sure you guys have/are doing something similar or more advanced...
Advertisement