Retrieving mesh indices, sign/unsigned ?

22 views
Skip to first unread message

Nicholas Yue

unread,
Sep 21, 2023, 1:11:35 AM9/21/23
to alembic-discussion
Hi,

  In the mesh, calling

        Alembic::AbcGeom::Int32ArraySamplePtr face_indices = samp.getFaceIndices();

  returns a

      Int32ArraySamplePtr

  whereas in GeomParm, I get unsigned integer array

        Alembic::AbcGeom::IN3fGeomParam normalsParams = schema.getNormalsParam();
        Alembic::AbcGeom::IN3fGeomParam::Sample normalsValue = normalsParams.getIndexedValue();
        Alembic::AbcGeom::UInt32ArraySamplePtr indices = normalsValue.getIndices();

  Am I retrieving the wrong indices ?

  I am trying to build an OBJ file after reading an Alembic file


Lucas Miller

unread,
Sep 21, 2023, 12:05:07 PM9/21/23
to alembic-d...@googlegroups.com
face indices and face counts make up the topology of the mesh.

It was most likely signed for historical reasons.

GeomParams are a little bit different in that if they are indexed their indices are in reference to their own values

Lucas

--
You received this message because you are subscribed to the Google Groups "alembic-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alembic-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alembic-discussion/CADYXiJJize0DdcWf1jLLDsdFSUNQm65b_ijFiu-ZE2P6bYnKRw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages