| 50 | } |
| 51 | |
| 52 | std::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 | |
| 61 | MR::Mesh fromFV( const pybind11::buffer& faces, const pybind11::buffer& verts, const MR::MeshBuilder::BuildSettings & settings, bool duplicateNonManifoldVertices ) |
| 62 | { |
nothing calls this directly
no test coverage detected