Questions tagged [numpy-stl]

Simple library to make working with STL files (and 3D objects in general) fast and easy.

35 questions
0
votes
0 answers

Generate a network graph inside a cylinder

I need to solve a problem and I'm really stuck with it, so I want to summon the power of the community to see if anyone has an idea on how to handle it. I need to create a porous material from a given surface . So, I have a point cloud representing…
alex
  • 11
  • 3
0
votes
1 answer

getting vertices and face as numpy array from a stl file using trimesh

I have an STL file, I now need to read the vertices and face value of that STL file using trimesh. myobj = trimesh.load_mesh("file.stl", enable_post_processing=True, solid=True) myobj.faces #gives me ndarray of faces how to read vertices from…
user8530486
0
votes
1 answer

How do you extract faces from a numpy-stl mesh?

I've read the documentation and searched the internet, however, couldn't reach any useful information. I'm loading a mesh from file into python using: import numpy from stl import mesh tank = mesh.Mesh.from_file('tank.stl') Now I need to extract…
Axoy
  • 57
  • 8
0
votes
1 answer

How to use numpy-stl with file uploaded with Flask request

I am writing an app, which takes a STL file as input. I want to get volume of the stl object without saving the stl file and use the volume to calculate a quote and post it back to browser. Right now I am using numpy-stl package, but I am stuck on…
zyx
  • 11
  • 1
0
votes
1 answer

How to initialize a triangular mesh in vtk

I need to create a triangular mesh on vtk from a list of points that I have. The points are stored under sphere, which is a nx9 numpy array where each row represents the three points that make up one triangle. Right now I am doing this: points =…
big_game
  • 11
  • 1
0
votes
0 answers

Convert .STL file to NetworkX graph object?

I was wondering if there was an easy way to convert a .STL file to a graph object. I've imported the STL file using numpy-stl and can return a vector representation of the mesh (a list of triangles) and this seems very similar to a graph object so I…
Ken
  • 1,155
  • 2
  • 19
  • 36
0
votes
1 answer

How to extract vertex , face from .stl file

I'm currently working on a project which use PyQt5 to be able to display 3D object using opengl.GLViewWiget I have already download a .stl file and a base of PyQt5 module self.Widget3D =…
0
votes
1 answer

numpy-stl topological information of the stl fle read

Using the Python numpy-stl package: reading the .stl files we can get the geometrical information from the triangular mesh, vertex data, normals, areas etc, but can we access the topological information, the connectivity information? I am a newcomer…
0
votes
2 answers

Finding intersection points between .stl (CAD drawing) file and 3D plot (matplotlib)?

I am trying to find intersection points between 3d object .stl file (that I imported to python using numpy-stl) and 3d plot(that I generated using matplotlib). The 3d object is a cad drawing and 3d plot is a bunch of curves in 3d. I can plot them on…
Sara S
  • 101
  • 1
  • 4
0
votes
2 answers

How to get .stl file from Amazon S3 by using boto3?

I have a Django Web application and i deployed it to Elastic Beanstalk environment. I also have the numpy-stl package. I'm trying to get a .stl file from Amazon S3 bucket and use this file with a stl package's function but i'm getting an error such…
Aslı Kök
  • 616
  • 8
  • 19
0
votes
2 answers

How to change STL colors using vtk library

I am trying to manipulate an STL file so they appear as different colours on the screen. Here is the code I have now, I am looping through multiple STL files. I think the only issue is my syntax, as I can not find a command that sets the data to…
0
votes
2 answers

How to get proper views of point cloud data in numpy-stl?

I am trying to get front, back, left, right, top, bottom after projecting the point clouds of 3D data. But the results are not good. Is there any better way to get the required views? I have done up to this using numpy-stl documentation and some…
Gkisi27
  • 177
  • 1
  • 3
  • 21
0
votes
0 answers

Is it possible to create Delaunay triangulation only in vertical (Z dimension)?

I'm working on plugin in QGIS which is creating 3d model from raster data. In that case, I need to create triangulation only in the vertical plane (no connecting vertical faces with neighbour points). This is my code and example with the current…
Kaemer
  • 1
  • 1
0
votes
1 answer

remove inside information when merging two 3d objects

Hi i'm currently working on a project where we have to combine multiple 3d objects. So for example place them next to each other and some times they also intersect. I'm looking for an algorithm/library or any idea that would reduce this new merged…
Fliens
  • 19
  • 1
  • 7
0
votes
1 answer

Python- STL File Reduction

I want to make a python script that reduces number of triangles in a STL file while preserving shape in python. Is there some module which can do this operation?