image thumbnail

updated 2 months ago

RayShapeArticle_FEX.zip by Paul Peeling

Solving Large Geometric and Visualization Problems with GPU Computing in MATLAB (ray tracing, rendering, computer graphics)

compareExecutionTime( N, L )

createTriangulatedSurface(N)

rayTriangleIntersection (o, d, p0, p1, p2)

image thumbnail

updated 1 year ago

Triangle/Ray Intersection by Jaroslaw Tuszynski

Fast vectorized triangle/ray intersection algorithm (computer graphics, intersection, ray)

Tutorial and tests of TriangleRayIntersection function

TriangleRayIntersection.m

image thumbnail

updated 1 year ago

3D Helical solenoid by Kurt Mizgier

Example of a 3D helical solenoid (curves, 3d, examples of curves)

helical_solenoid.m

image thumbnail

updated 4 years ago

A fast voxel traversal algorithm for ray tracing by Jesús P. Mena-Chalco

A fast and simple voxel traversal algorithm through a 3D space partition (uniform grid) (3dda, voxel, traversal)

amanatidesWooAlgorithm(origin, direction, grid3D, verbose)

rayBoxIntersection(origin, direction, vmin, vmax)

test.m

image thumbnail

updated 4 years ago

Ray/box Intersection by Jesús P. Mena-Chalco

Ray/box intersection using Smits' algorithm. The zip file includes one example of intersection. (ray, box, intersection)

rayBoxIntersection(origin, direction, vmin, vmax)

test.m

image thumbnail

updated 4 years ago

Line clipping by Chandan

Line clipping by Cyrus Beck algorithm (line clipping, cyrus beck clipping a..., computer graphics)

lineclip()

image thumbnail

updated 4 years ago

raytracer by Nikolay Chumerin

Simple ray-tracing engine for Matlab. (raytracing, computer graphics, computer vision)

add_light(lights, light_type, tag, position_fcn, orientat...

add_material(materials, material_type, tag, mapping_style...

add_object(objects, obj_type, tag, position_fcn, orientat...

image thumbnail

updated almost 5 years ago

Line Drawing by Bresenham Algorithm by Chandan

Bresenham Line drawing Algorithm uses error for next pixel to decide its course. (mathematics, computer graphics, game graphics)

bresenham_line()

image thumbnail

updated almost 5 years ago

Bresenham line generation by Chandan

Draws line using Bresenham line generation algorithm (mathematics, computer graphics, bresenham line algori...)

bresenham_line()

image thumbnail

updated almost 5 years ago

Ellipse generation by Chandan

Generation of ellipse using Midpoint ellipse algorithm (computer graphics, midpoint ellipse algo...)

ellipse()

image thumbnail

updated almost 5 years ago

Line drawing by DDA by Chandan

Draws a line using DDA. (mathematics, computer graphics)

draw(x0,y0,x1,y1)

image thumbnail

updated almost 5 years ago

Bresenham Circle by Chandan

Circle drawing by Bresenham Algorithm (mathematics, game, computer graphics)

bresenham_circle(a,b,r)

image thumbnail

updated almost 5 years ago

3D curves by Jesús P. Mena-Chalco

Examples of 3D curves described in Chapter 7 of the book: "CRC Standard Curves and Surfaces" (3d, curves, parametric)

helicalCurves.m

miscellaneousSpirals.m

sineWavesIn3D.m

image thumbnail

updated almost 5 years ago

Ray/Triangle Intersection by Jesús P. Mena-Chalco

Ray/triangle intersection using the algorithm proposed by Möller and Trumbore (1997) (ray, triangle, intersection)

rayTriangleIntersection (o, d, p0, p1, p2)

test.m

image thumbnail

updated almost 5 years ago

Linear Subdivision by Jesús P. Mena-Chalco

A simple m file for the triangle mesh subdivision using linear interpolation. (linear sudbdivision, mesh subdivision, computer graphics)

linearSubdivision(vertices, faces)

plotMesh(vertices, faces)

test.m

image thumbnail

updated 11 years ago

CMRmap.m by Carey Rappaport

A colormap for effective black and white rendering of color scale images. (annotation, customization, color graphics)

CMRmap.m

Contact us