PiRSquared17 / alembic

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

First example Cooking With Alembic has build errors #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was looking at the first issue that seems relevant:

‘P3d’ was not declared in this scope

Could not find any reference to P3d in the current trunk, or in my installation 
on Linux.

Is P3d part of Alembic? I've been looking also in OpenEXR and HDF5.

Here's the full traceback:

/home/xavier/Dev/alembicDev/Alembic/main.cpp||In function ‘void 
Example1_MeshOut()’:|
/home/xavier/Dev/alembicDev/Alembic/main.cpp|111|error: ‘P3d’ was not 
declared in this scope|
/home/xavier/Dev/alembicDev/Alembic/main.cpp||In function ‘void 
Example1_MeshIn()’:|
/home/xavier/Dev/alembicDev/Alembic/main.cpp|136|error: ‘class 
Alembic::AbcGeom::v1::IPolyMeshSchema’ has no member named ‘getNormals’|
/home/xavier/Dev/alembicDev/Alembic/main.cpp|137|error: ‘class 
Alembic::AbcGeom::v1::IPolyMeshSchema’ has no member named ‘getUVs’|
||=== Build finished: 3 errors, 0 warnings ===|

I'll gladly provide more information if needed.

Thanks,

Xavier

Original issue reported on code.google.com by lapointe...@gmail.com on 27 Aug 2011 at 2:52

GoogleCodeExporter commented 9 years ago
Forgot to mention: this is with the current 1.0 build.

Original comment by lapointe...@gmail.com on 27 Aug 2011 at 2:53

GoogleCodeExporter commented 9 years ago
It looks like some of that example code wasn't updated (or updated mechanically 
but incorrectly) to reflect changes to the API preceding 1.0.

Alembic templates P3f/P3d types for Properties and GeomParams to distinguish 
between a point and vector. Container-wise, they're still backed by 
Imath::V3f/d types. In this example, it's a regular Imath::Box3d so the V3d 
should be used. I suspect this change was accidentally applied to the example 
also.

The other two errors listed above should read:
mesh.getNormalsParam()
mesh.getUVsParam()

(This was another relatively late API change.)

Original comment by steve.lavietes@gmail.com on 27 Aug 2011 at 3:23

GoogleCodeExporter commented 9 years ago
I'll try that out. Thanks for the quick reply.

Original comment by lapointe...@gmail.com on 27 Aug 2011 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by miller.lucas on 23 May 2012 at 1:24