mesh

Extracting coordinates from meshgrid data

Extracting coordinates from meshgrid data Question: I have a cubic grid as shown in the picture below. I would like to list the vertices of each sub-cube, so I would end up with a nested list of sub-cubes with their corresponding list of vertices. My initial attempt was to use a generator, import numpy as …

Total answers: 2

Python 3.3 – Create 3D-mesh as Wavefront obj-file from regular spaced vertices

Python 3.3 – Create 3D-mesh as Wavefront obj-file from regular spaced vertices Question: I am writing a simple command line program in Python 3.3 which reads a text file of xyz-coordinates and outputs a the equivalent triangle faces in between. The export format are Wavefront obj-files (https://en.wikipedia.org/wiki/Wavefront_.obj_file). The algorthm is solely intended to work with …

Total answers: 2