drawing outlines of circles

Christopher Overstreet's icon

I am trying to draw many circles which can move and output only the circle edge vertices as a list or matrix.

Not sure how to efficiently go about this. jit.gl.sketch doesn't seem to have an matrixoutput mode, and jit.gl.gridshape outputs circles which are filled in by more vertices, otherwise I could use that with [jit.gl.multiple @matrixoutput 1]

Any advice appreciated...

ChrisO

Rob Ramirez's icon

to draw a circle outline, use mesh @draw_mode polygon, and jit.expr to create the points. then you can use gl.multiple.

andrew benson posted a version of this which did the necessary matrix math to draw multiple circles with a single mesh.

Max Patch
Copy patch and select New From Clipboard in Max.