I am trying to see if a point is within a triangle in which it’s 3 points are in cartesian space. I used bresenham to outline the coordinates for you, all of that area should be filled with white pixels and that area only. I am using tinyrenderer https://github.com/ssloy/tinyrenderer/wiki/Lesson-2:-Triangle-rasterization-and-back-face-culling as a guideline. I converted his ..
So I have this code, but it only creates a collision detector at the tool radius. I would like to extend the collision to the whole 3d tool but all has been in vain. Below is the sample code on how it does that. // radius of tool for graphic and haptic representation double hapticRadius ..
I’d like to calculate the AABB of a 3D object (in C++) to get its extents on screen. Obviously I already thought of doing it by just iterating over each vertex and keeping track of the minimum and maximum for each axis. But this technique just feels way too simple, and it will probably be ..
how can I convert AABB box to OBB box? The way I store the AABB box is I have 2 vectors, one has the center point and second has the distance to the edge in each direction (x y z) from center. Source: Windows Que..
I need to find an intersection polyline of 2 meshes. I have an implementation of AABBTree which find segments and triangles of intersection, Now I need to construct a polyline from them which defines the boundary of the intersection.I prefer not to use CGAL or any other library I looking for some kind of algorithm ..