About 2,180,000 results
Open links in new tab
  1. python - Plotting 3D Polygons - Stack Overflow

    I was unsuccessful browsing web for a solution for the following simple question: How to draw 3D polygon (say a filled rectangle or triangle) using vertices values? I have tried many ideas but all ...

  2. Calculate normal of a single triangle in 3D space

    Part A of this problem has these three coordinates as the points of the triangle: [1, 1, 1]; [1, -1, 1]; [1, 0, -1]. I tried cobbling together different formulas and explanations and I got that the normal …

  3. Why do 3D engines primarily use triangles to draw surfaces?

    May 23, 2011 · Why are triangles always used for drawing surfaces in 3D? Why not a square or some other shape?

  4. Fastest way to compute point to triangle distance in 3D?

    One obvious method for computing the minimum distance from a point to a 3D triangle is to project the point onto the plane of the triangle, determine the barycentric coordinates of the …

  5. Intersection between line and triangle in 3D - Stack Overflow

    Mar 12, 2017 · I have a line and a triangle somewhere in 3D space. In other words, I have 3 points ([x,y,z] each) for the triangle, and two points (also [x,y,z]) for the line. I need to figure out …

  6. How to convert a 3D point into 2D perspective projection?

    My question is, how does one take the 3D xyz vertex returned from the 'world to camera' function, and convert this into a 2D coordinate. I am wanting to use the projection plane at z=0, and …

  7. Calculate the centroid of a 3D mesh of triangles - Stack Overflow

    Mar 31, 2021 · I'm trying to calculate the centroid of a 3D mesh of triangles. EDIT : it turns out I was not, I was trying to calculate the center of gravity, which is not the same My code is made …

  8. How do I Z-sort triangles for a 3D engine? - Stack Overflow

    Sep 18, 2010 · 11 I'm building a small 3D engine for a game I'm working on. I've got my basics sorted: textured triangles with backface culling. However depth sorting is proving to be a …

  9. Determine if point is inside triangle in 3D - Stack Overflow

    May 31, 2016 · So instead of working in 3D in the triangle's plane, lets work in 2D in one of the main planes. If a point is inside a polygon in 3D, it will also be inside it's projection on the 2D …

  10. 3D triangle rasterization into voxel grid - Stack Overflow

    Oct 30, 2022 · 2 Prologue: This is Q&A to cover 3D triangle rasterization into voxel grid I was asked for in order to solve a different problem related to material erosion/removal during …