Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3552

Other programming languages • Re: JSCAD — JavaScript CAD in your browser

$
0
0
Some more news on JSCAD.

Yesterday my first pull request for adding new "geom3.fromPointsConvex(uniquePoints)" was approved and merged:
https://github.com/jscad/OpenJSCAD.org/ ... bb875e9639

I really like how new testcase looks for that function, see the diff for details.
Before "hull()" produced convex hull for a set of 2D/3D primitives.
New "fromPointsConvex()" does same, but for a set of 3D points.
Because it is all so fast, new JSCAD model has "live: true" slider setting, you can try:
https://hermann-sw.github.io/lattice_sphere_cmp
Image

As most times for me, lattice_sphere_cmp is on prime factorization as well, for semiprimes (RSA numbers) if you select "= pq".


JSCAD does not normally allow to mix 2D and 3D stuff (without extruding 2D stuff), but I wanted to display face normals. I used my 3D graph "edge()" with very low radius as workaround. Discussion on new "line3()" for that on discord:
https://discord.com/channels/7759840952 ... 9508438016
Image
You can play with that model and inspect the code here:
https://stamm-wilbrandt.de/convex3D_plus_normals.html

Because there is no line3() yet, I misused my 3D graph edge() with very low radius as line3() workaround.

Statistics: Posted by HermannSW — Mon May 27, 2024 11:47 pm



Viewing all articles
Browse latest Browse all 3552

Trending Articles