nightstyles / alembic

Automatically exported from code.google.com/p/alembic
Other
1 stars 0 forks source link

Add getPositions to ISubD and IPolyMesh #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For situations where we can't cache our data, the ability to get just the 
positions would be very useful.

Without this, we would end up needing to read the topology for the mesh each 
frame, even in situations where we know it isn't changing.

Original issue reported on code.google.com by miller.lucas on 9 Feb 2011 at 7:22

GoogleCodeExporter commented 9 years ago
Hey Lucas, I'll add this today (it's a one-line change to each Schema), since 
I'm already mucking about in there.

Original comment by ard...@gmail.com on 9 Feb 2011 at 7:46

GoogleCodeExporter commented 9 years ago
Doh!  I already did it Joe.

http://code.google.com/r/millerlucas-dev/source/detail?r=3443679c44510f669c9b159
90762d68ebaebc538
http://code.google.com/r/millerlucas-dev/source/detail?r=66a0c70e62058354ad5cfb1
3bb83e2d32730bcde
http://code.google.com/r/millerlucas-dev/source/detail?r=92291ea2b4645323feeff0d
2a35245bb5e0dac78

Address this.

This dramatically improved the reading on one of our large deforming models.

Case A
323 frames
SubD 235 (animated 235) 203173 points
Xform 306 (16 animated)

It was taking around 213 seconds to read all 323 frames in the Maya importer 
before this change.

After this change, and taking advantage of getPositions the time dropped to 
about 130 seconds, which puts it on par with Tako.

Original comment by miller.lucas on 9 Feb 2011 at 7:52

GoogleCodeExporter commented 9 years ago

Original comment by ard...@gmail.com on 15 Feb 2011 at 3:56