Sphere with up to 6 coordinate planes parallel holes

geometry
buffergeometry
sphere
#1

Some examples of holes with three.js

Restrict an object to another?
In the Orb (Shaders)
Experiment: Geometry Holes

How to allow duplicate vertices in ExtrudeGeometry?
https://jsfiddle.net/Lg458tof/

Looking for Updated plug-in for CSG

My contribution are two variants of a sphere with up to 6 coordinate planes parallel holes. One variant is completely symmetrical, the other variant is more efficient.

See Updated April 29 (There was a typo. Only one m in symmetry.)

http://discourse.threejs.hofk.de/2019/SphereCut/SphereCutSymmetric.html

http://discourse.threejs.hofk.de/2019/SphereCut/SphereCut.html

With these spheres you can e.g. create a labyrinth similar to Addon to create special / extended geometries , but with round shapes.

20190427-2003-10309

These properties are helpful for this.

	g.cutRadius = []; // calculated radius of cut circles px, nx, py, ny, pz, nz - for external use
	g.cutDistance = []; // calculated distance of the cut circles to the center px, nx, py, ny, pz, nz - for external use
	g.cutSegments = []; // segments of the cut circles  - for external use

20190420-1838-05860

I’m gonna put the spheres in the addon.

1 Like
Addon to create special / extended geometries
Collection of sphere definitions
#2

It is now possible to create only some of the eight sphere parts.

Updated April 29 (There was a typo. Only one m in symmetry.)

function createSphereCutSymmetric( g, radius, fineness, cut, parts  ) {

	// BufferGeometry, radius, fineness (1/4 equator),
	//    cut[ px, nx, py, ny, pz, nz ] max. 2*fineness
	//    parts [ 1, 1, 1, 1, 1, 0, 0, 1 ]  1 for create part, otherwise arbitrary

function createSphereCut( g, radius, equator, cut, parts ) {

	// BufferGeometry, radius, equator,
	//     cut[ px, nx, py, ny, pz, nz ] max. equator, non-overlapping,
	//     parts [ 1, 1, 1, 1, 1, 0, 0, 1 ]  1 for create part, otherwise arbitrary

20190428-2104-33851

2 Likes