OLD | NEW |
1 #include "SOP_AlembicIn.h" | 1 #include "SOP_AlembicIn.h" |
2 | 2 |
3 #include <Alembic/AbcCoreHDF5/All.h> | 3 #include <Alembic/AbcCoreHDF5/All.h> |
4 | 4 |
5 #include <OP/OP_OperatorTable.h> | 5 #include <OP/OP_OperatorTable.h> |
6 #include <OP/OP_Director.h> | 6 #include <OP/OP_Director.h> |
7 #include <PRM/PRM_Include.h> | 7 #include <PRM/PRM_Include.h> |
8 | 8 |
9 #include <UT/UT_Interrupt.h> | 9 #include <UT/UT_Interrupt.h> |
10 #include <GU/GU_Detail.h> | 10 #include <GU/GU_Detail.h> |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 ISampleSelector sampleSelector( args.abcTime ); | 862 ISampleSelector sampleSelector( args.abcTime ); |
863 IPolyMeshSchema &schema = polymesh.getSchema(); | 863 IPolyMeshSchema &schema = polymesh.getSchema(); |
864 IPolyMeshSchema::Sample sample = schema.getValue( sampleSelector ); | 864 IPolyMeshSchema::Sample sample = schema.getValue( sampleSelector ); |
865 ···· | 865 ···· |
866 ···· | 866 ···· |
867 //store the primitive and point start indices | 867 //store the primitive and point start indices |
868 size_t startPointIdx = gdp->points().entries(); | 868 size_t startPointIdx = gdp->points().entries(); |
869 size_t startPrimIdx = gdp->primitives().entries(); | 869 size_t startPrimIdx = gdp->primitives().entries(); |
870 ···· | 870 ···· |
871 GB_PrimitiveGroup * primGrp = buildMesh(getFullName(polymesh), | 871 GB_PrimitiveGroup * primGrp = buildMesh(getFullName(polymesh), |
872 sample.getPositions(), sample.getCounts(), sample.getIndices()); | 872 sample.getPositions(), sample.getFaceCounts(), |
| 873 sample.getFaceIndices()); |
873 ···· | 874 ···· |
874 addUVs(args, polymesh.getSchema().getUVs(), startPointIdx, startPrimIdx); | 875 addUVs(args, polymesh.getSchema().getUVs(), startPointIdx, startPrimIdx); |
875 addNormals(args, polymesh.getSchema().getNormals(), startPointIdx, | 876 addNormals(args, polymesh.getSchema().getNormals(), startPointIdx, |
876 startPrimIdx); | 877 startPrimIdx); |
877 ···· | 878 ···· |
878 addArbitraryGeomParams(args, polymesh.getSchema().getArbGeomParams(), | 879 addArbitraryGeomParams(args, polymesh.getSchema().getArbGeomParams(), |
879 startPointIdx, startPrimIdx); | 880 startPointIdx, startPrimIdx); |
880 ···· | 881 ···· |
881 //apply xforms via gdp->transform so that we don't have to think | 882 //apply xforms via gdp->transform so that we don't have to think |
882 //about normals and other affected attributes | 883 //about normals and other affected attributes |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 { | 953 { |
953 table->addOperator(new OP_Operator( | 954 table->addOperator(new OP_Operator( |
954 "Alembic_In", // Internal name | 955 "Alembic_In", // Internal name |
955 "Alembic_In", // GUI name | 956 "Alembic_In", // GUI name |
956 SOP_AlembicIn::myConstructor, // Op Constructr | 957 SOP_AlembicIn::myConstructor, // Op Constructr |
957 SOP_AlembicIn::myTemplateList, // GUI Definition | 958 SOP_AlembicIn::myTemplateList, // GUI Definition |
958 0,0, // Min,Max # of Inputs | 959 0,0, // Min,Max # of Inputs |
959 0,OP_FLAG_GENERATOR) // Local Variables/Generator | 960 0,OP_FLAG_GENERATOR) // Local Variables/Generator |
960 ); | 961 ); |
961 } | 962 } |
OLD | NEW |