MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromNumpyArray

Function fromNumpyArray

source/mrmeshnumpy/MRPythonNumpyExposing.cpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52std::vector<MR::Vector3f> fromNumpyArray( const pybind11::buffer& coords )
53{
54 pybind11::buffer_info bufInfo = coords.request();
55 if ( bufInfo.ndim != 2 || bufInfo.shape[1] != 3 )
56 throw std::runtime_error( "shape of input python vector 'coords' should be (n,3)" );
57
58 return fromNumpyArrayInfo( bufInfo );
59}
60
61MR::Mesh fromFV( const pybind11::buffer& faces, const pybind11::buffer& verts, const MR::MeshBuilder::BuildSettings & settings, bool duplicateNonManifoldVertices )
62{

Callers

nothing calls this directly

Calls 2

fromNumpyArrayInfoFunction · 0.85
requestMethod · 0.45

Tested by

no test coverage detected