Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(920)

Side by Side Diff: houdini/SOP_AlembicIn/SOP_AlembicIn.cpp

Issue 4662068: Alembic 1.0rc1, changes since 0.9.3
Patch Set: Created 13 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « houdini/SOP_AlembicIn/Makefile.hcustom ('k') | lib/Alembic/Abc/IArchive.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « houdini/SOP_AlembicIn/Makefile.hcustom ('k') | lib/Alembic/Abc/IArchive.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b