MCPcopy Create free account
hub / github.com/ImageEngine/cortex / mergePointsWrapper

Function mergePointsWrapper

src/IECoreScene/bindings/PointsAlgoBinding.cpp:64–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64PointsPrimitivePtr 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
79boost::python::list segmentWrapper(const PointsPrimitive *points, const PrimitiveVariable &primitiveVariable, const IECore::Data *segmentValues = nullptr, const IECore::Canceller *canceller = nullptr )
80{

Callers

nothing calls this directly

Calls 3

mergePointsFunction · 0.85
lenFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected