Questions tagged [numpy]

A python library adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays

Filter by
Sorted by
Tagged with
3
votes
1answer
34 views

Numpy / lidar point-cloud to mesh: How to separate polygons?

I have lidar data in numpy structured array with x,y,z and other lidar specifics that I can use to colourize and display. I have got pretty far on the numpy side for filtering the points down (near, ...
2
votes
2answers
59 views

Animation Nodes Loop Input performance issue with large 3d vectors numpy arrays

I am working on scientific visualizations involving huge arrays of 3d vectors, sometimes 100k or sometimes even millions of vectors. I quickly ran into performance related issues, mostly when needing ...
3
votes
1answer
86 views

Fastest way copying from bgl.Buffer() to numpy array

I have some rendered or processed pixel data in a bgl.Buffer() object and need it in a numpy array but that proccess seems to take very long. Here is what I have tried so far: ...
0
votes
0answers
14 views

Would like to develop a Python script that took a couple of numpy arrays vertex, faces and created a decimated mesh

I would like to create a standalone python script that took as input a numpy array of vertex and faces, created a mesh which is then decimated. Is this possible? Looking for pointers to ease the ...
0
votes
0answers
13 views

Discontinuous mesh imported from numpy array

I need to show my 3D python surface inside Blender. I used the following code to do that ...
1
vote
0answers
18 views

Python: Which numpy float type is better for Blender?

I've been working on addons for blender (modeling, sculpting). I use millions of vertex positions/normals through Numpy. Which Float Type is better for Blender? float16, float32, float64? What type of ...
2
votes
1answer
91 views

Python : Custom Attribute for Vertices

I want to store custom Vector attribute for each vertex (custom vertex positions). I want to get it through numpy as I have millions of vertices: ...
4
votes
0answers
37 views

Numpy optimise mesh edges length calculation

To improve my very rudimentary numpy knowledge am going to ask a number of optimise my numpy questions here on BSE Can find the length of each edge in a mesh using ...
2
votes
1answer
519 views

Create curve from Numpy Array using Python

I have looked through previous questions on this and many other boards and I cannot seem to find a previous answer. I have a largish Numpy generated ndarray that represents a harmonograph output (...
11
votes
3answers
1k views

Replace matrix @ vector list comprehensions with something more efficient

I'm looking to replace list comprehensions like the following with something more efficient and I was wondering if numpy can be used. ...