MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshnumpy Namespace Reference

Functions

meshlib.mrmeshpy.EdgeBitSet edgeBitSetFromBools (typing_extensions.Buffer boolArray)
 
meshlib.mrmeshpy.FaceBitSet faceBitSetFromBools (typing_extensions.Buffer boolArray)
 
meshlib.mrmeshpy.std_vector_Vector3_float fromNumpyArray (typing_extensions.Buffer coords)
 
numpy.ndarray[numpy.float64] getNumpy3Darray (meshlib.mrmeshpy.SimpleVolume simpleVolume)
 
numpy.ndarray[bool] getNumpyBitSet (meshlib.mrmeshpy.BitSet bitset)
 
numpy.ndarray[numpy.float64] getNumpyCurvature (meshlib.mrmeshpy.Mesh mesh)
 
numpy.ndarray[numpy.float64] getNumpyCurvatureGradient (meshlib.mrmeshpy.Mesh mesh)
 
numpy.ndarray[numpy.int32] getNumpyFaces (meshlib.mrmeshpy.MeshTopology topology)
 
numpy.ndarray[numpy.float64] getNumpyVerts (meshlib.mrmeshpy.Mesh mesh)
 
meshlib.mrmeshpy.Mesh meshFromFacesVerts (typing_extensions.Buffer faces, typing_extensions.Buffer verts, meshlib.mrmeshpy.MeshBuilder.BuildSettings settings=..., bool duplicateNonManifoldVertices=True)
 
meshlib.mrmeshpy.Mesh meshFromUVPoints (typing_extensions.Buffer xArray, typing_extensions.Buffer yArray, typing_extensions.Buffer zArray)
 
meshlib.mrmeshpy.PointCloud pointCloudFromPoints (typing_extensions.Buffer points, typing_extensions.Buffer normals=...)
 
meshlib.mrmeshpy.Polyline2 polyline2FromPoints (typing_extensions.Buffer points)
 
meshlib.mrmeshpy.SimpleVolumeMinMax simpleVolumeFrom3Darray (typing_extensions.Buffer DvoxelsArray)
 
numpy.ndarray[numpy.float64] toNumpyArray (meshlib.mrmeshpy.VertCoords coords)
 
numpy.ndarray[numpy.float64] toNumpyArray (meshlib.mrmeshpy.FaceNormals coords)
 
numpy.ndarray[numpy.float64] toNumpyArray (meshlib.mrmeshpy.std_vector_Vector3_float coords)
 
meshlib.mrmeshpy.UndirectedEdgeBitSet undirectedEdgeBitSetFromBools (typing_extensions.Buffer boolArray)
 
meshlib.mrmeshpy.VertBitSet vertBitSetFromBools (typing_extensions.Buffer boolArray)
 

Function Documentation

◆ edgeBitSetFromBools()

meshlib.mrmeshpy.EdgeBitSet meshlib.mrmeshnumpy.edgeBitSetFromBools ( typing_extensions.Buffer boolArray)
returns EdgeBitSet from numpy array with bools

◆ faceBitSetFromBools()

meshlib.mrmeshpy.FaceBitSet meshlib.mrmeshnumpy.faceBitSetFromBools ( typing_extensions.Buffer boolArray)
returns FaceBitSet from numpy array with bools

◆ fromNumpyArray()

meshlib.mrmeshpy.std_vector_Vector3_float meshlib.mrmeshnumpy.fromNumpyArray ( typing_extensions.Buffer coords)
constructs mrmeshpy.vectorVector3f from numpy ndarray with shape (n,3)

◆ getNumpy3Darray()

numpy.ndarray[numpy.float64] meshlib.mrmeshnumpy.getNumpy3Darray ( meshlib.mrmeshpy.SimpleVolume simpleVolume)
Convert SimpleVolume to numpy 3D array

◆ getNumpyBitSet()

numpy.ndarray[bool] meshlib.mrmeshnumpy.getNumpyBitSet ( meshlib.mrmeshpy.BitSet bitset)
returns numpy array with bools for each bit of given bitset

◆ getNumpyCurvature()

numpy.ndarray[numpy.float64] meshlib.mrmeshnumpy.getNumpyCurvature ( meshlib.mrmeshpy.Mesh mesh)
retunrs numpy array with curvature for each valid vertex of given mesh

◆ getNumpyCurvatureGradient()

numpy.ndarray[numpy.float64] meshlib.mrmeshnumpy.getNumpyCurvatureGradient ( meshlib.mrmeshpy.Mesh mesh)
returns numpy array shapes [num verts,3] which represents gradient of mean curvature of mesh valid points

◆ getNumpyFaces()

numpy.ndarray[numpy.int32] meshlib.mrmeshnumpy.getNumpyFaces ( meshlib.mrmeshpy.MeshTopology topology)
returns numpy array shapes [num faces,3] which represents vertices of mesh valid faces 

◆ getNumpyVerts()

numpy.ndarray[numpy.float64] meshlib.mrmeshnumpy.getNumpyVerts ( meshlib.mrmeshpy.Mesh mesh)
returns numpy array shapes [num verts,3] which represents coordinates of all mesh points (including invalid ones)

◆ meshFromFacesVerts()

meshlib.mrmeshpy.Mesh meshlib.mrmeshnumpy.meshFromFacesVerts ( typing_extensions.Buffer faces,
typing_extensions.Buffer verts,
meshlib.mrmeshpy.MeshBuilder.BuildSettings settings = ...,
bool duplicateNonManifoldVertices = True )
constructs mesh from given numpy ndarrays of faces (N VertId x3, FaceId x1), verts (M vec3 x3)

◆ meshFromUVPoints()

meshlib.mrmeshpy.Mesh meshlib.mrmeshnumpy.meshFromUVPoints ( typing_extensions.Buffer xArray,
typing_extensions.Buffer yArray,
typing_extensions.Buffer zArray )
constructs mesh from three 2d numpy ndarrays with x,y,z positions of mesh

◆ pointCloudFromPoints()

meshlib.mrmeshpy.PointCloud meshlib.mrmeshnumpy.pointCloudFromPoints ( typing_extensions.Buffer points,
typing_extensions.Buffer normals = ... )
creates point cloud object from numpy arrays, first arg - points, second optional arg - normals

◆ polyline2FromPoints()

meshlib.mrmeshpy.Polyline2 meshlib.mrmeshnumpy.polyline2FromPoints ( typing_extensions.Buffer points)
creates polyline2 object from numpy array

◆ simpleVolumeFrom3Darray()

meshlib.mrmeshpy.SimpleVolumeMinMax meshlib.mrmeshnumpy.simpleVolumeFrom3Darray ( typing_extensions.Buffer DvoxelsArray)
Convert numpy 3D array to SimpleVolume

◆ toNumpyArray() [1/3]

numpy.ndarray[numpy.float64] meshlib.mrmeshnumpy.toNumpyArray ( meshlib.mrmeshpy.FaceNormals coords)
returns numpy array shapes [num coords,3] which represents coordinates from given vector

◆ toNumpyArray() [2/3]

numpy.ndarray[numpy.float64] meshlib.mrmeshnumpy.toNumpyArray ( meshlib.mrmeshpy.std_vector_Vector3_float coords)
returns numpy array shapes [num coords,3] which represents coordinates from given vector

◆ toNumpyArray() [3/3]

numpy.ndarray[numpy.float64] meshlib.mrmeshnumpy.toNumpyArray ( meshlib.mrmeshpy.VertCoords coords)
returns numpy array shapes [num coords,3] which represents coordinates from given vector

◆ undirectedEdgeBitSetFromBools()

meshlib.mrmeshpy.UndirectedEdgeBitSet meshlib.mrmeshnumpy.undirectedEdgeBitSetFromBools ( typing_extensions.Buffer boolArray)
returns UndirectedEdgeBitSet from numpy array with bools

◆ vertBitSetFromBools()

meshlib.mrmeshpy.VertBitSet meshlib.mrmeshnumpy.vertBitSetFromBools ( typing_extensions.Buffer boolArray)
returns VertBitSet from numpy array with bools