Triangulation cylinder with holes

The construction was enhanced.

In the basic version, only cylinders in the central position could be adapted again at the cylinder ends.

Now spheres, cylinders or planes can be docked to the cylinder ends.

The connections can also be made excentrically and at any angle to each other.

const parameters = {

	// excenter unit: '%' of the radius, 'd' factor to d, 'v' value
		
	d: 0.14, // rough side length of the triangles
	div4: 17, // division of the quarter circle
	
	geoBtm: 'plane', // 'plane', 'sphere', 'cylinder' solid to be adapted
	bottom:  -4,
	div4Btm: 34, // division bottom adaptation, (to quarter, >= div4)
	phiBtm: 0.77, // rotation of adaptive-deformed circle (Bottom)	
	excBtm: 1.2,
	excUnitBtm: 'v',
	tiltBtm: 0.5, // tilt of bottom adaption ( -PI/2 < tilt < PI/2 )

	geoTop: 'cylinder', //  'plane', 'sphere', 'cylinder' solid to be adapted
	top: 2,
	div4Top: 44, // division top adaptation, (to quarter, >= div4)
	phiTop: 0.77, // rotation of adaptive-deformed circle (Top)
	excTop: 148,
	excUnitTop: '%',
	tiltTop: 0.5, // tilt of top adaption ( -PI/2 < tilt < PI/2 )
	
	holes: [
		
		//  hole to conect a sphere:  [ 'sphere', div4AdpSphere, y, phi, exc, unit ]	
		[ 'sphere', 16, -1.11, 0,  2.686, 'v' ],
		
		// hole to conect a cylinder: [ 'cylinder', div4AdpCylinder, y, phi, exc, unit, tilt, <optional: side> ]
		[ 'cylinder', 8,  -2.2, 1.57, 52.898, '%', -0.22, '+-' ], // side is ignored for connected hole
		
		//points hole,: array of points y, phi, ...  (last point is connected to first)
		[ 0.15,0.45, 0.5,0.9, 0.8,0.6, 0.75,-0.2, 0.1,-0.15  ]
		
	]
 
}

2019-12-14_20.26.56

Try here - use the slider.
https://hofk.de/main/threejs/Triangulation/TriangulationCylinderWithHolesEnhanced01.html


The goal is to combine the design for elementary bodies and surfaces to create more complex inner geometries.

So far only spheres ( Triangulation sphere with holes ) and cylinders are realized. Torus and polygons are still missing.