| 62 | } |
| 63 | |
| 64 | PointsPrimitivePtr mergePointsWrapper( boost::python::list &pointsPrimitiveList, const IECore::Canceller *canceller ) |
| 65 | { |
| 66 | int numPointsPrimitives = boost::python::len( pointsPrimitiveList ); |
| 67 | std::vector<const PointsPrimitive *> pointsPrimitiveVec( numPointsPrimitives ); |
| 68 | |
| 69 | for( int i = 0; i < numPointsPrimitives; ++i ) |
| 70 | { |
| 71 | PointsPrimitivePtr ptr = boost::python::extract<PointsPrimitivePtr>( pointsPrimitiveList[i] ); |
| 72 | pointsPrimitiveVec[i] = ptr.get(); |
| 73 | } |
| 74 | |
| 75 | IECorePython::ScopedGILRelease gilRelease; |
| 76 | return PointsAlgo::mergePoints( pointsPrimitiveVec ); |
| 77 | } |
| 78 | |
| 79 | boost::python::list segmentWrapper(const PointsPrimitive *points, const PrimitiveVariable &primitiveVariable, const IECore::Data *segmentValues = nullptr, const IECore::Canceller *canceller = nullptr ) |
| 80 | { |
nothing calls this directly
no test coverage detected