2021-01-18 15:35:19 +08:00
# shape_liquid_splitting
Returns shape points of two splitting liquid shapes, kind of how cells divide. They can be used with xxx_extrude modules of dotSCAD. The shape points can be also used with the built-in polygon module.
2021-01-18 15:37:24 +08:00
**Since:** 2.5
2021-01-18 15:35:19 +08:00
## Parameters
- `radius` : The radius of two circles.
- `centre_dist` : The distance between centres of two circles.
- `tangent_angle` : The angle of a tangent line. It defaults to 30 degrees. See examples below.
2021-02-24 21:09:54 +08:00
- `t_step` : It defaults to 0.1. See [bezier_curve ](https://openhome.cc/eGossip/OpenSCAD/lib3x-bezier_curve.html ) for details.
2021-01-18 15:35:19 +08:00
- `$fa` , `$fs` , `$fn` : Check [the circle module ](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle ) for more details.
## Examples
2022-06-06 13:11:46 +08:00
use < shape_liquid_splitting.scad >
2021-01-18 15:35:19 +08:00
$fn = 36;
radius = 10;
centre_dist = 30;
shape_pts = shape_liquid_splitting(radius, centre_dist);
polygon(shape_pts);
2021-02-24 21:09:54 +08:00
![shape_liquid_splitting ](images/lib3x-shape_liquid_splitting-1.JPG )
2021-01-18 15:35:19 +08:00
2022-06-06 13:11:46 +08:00
use < shape_liquid_splitting.scad >
2021-01-18 15:35:19 +08:00
$fn = 36;
radius = 10;
centre_dist = 30;
shape_pts = shape_liquid_splitting(radius, centre_dist);
width = centre_dist / 2 + radius;
2022-04-06 17:44:11 +08:00
rotate_extrude()
difference() {
2021-01-18 15:35:19 +08:00
polygon(shape_pts);
translate([-width, -radius])
square([width, radius * 2]);
}
2021-02-24 21:09:54 +08:00
![shape_liquid_splitting ](images/lib3x-shape_liquid_splitting-2.JPG )
2021-01-18 15:35:19 +08:00
2022-06-06 13:11:46 +08:00
use < shape_liquid_splitting.scad >
2021-01-18 15:35:19 +08:00
$fn = 36;
radius = 10;
centre_dist = 30;
shape_pts = shape_liquid_splitting(radius, centre_dist);
width = centre_dist + radius * 2;
rotate_extrude()
2022-04-06 17:44:11 +08:00
intersection() {
rotate(-90) polygon(shape_pts);
2021-01-18 15:35:19 +08:00
2022-04-06 17:44:11 +08:00
translate([radius / 2, 0])
square([radius, width], center = true);
}
2021-01-18 15:35:19 +08:00
2021-02-24 21:09:54 +08:00
![shape_liquid_splitting ](images/lib3x-shape_liquid_splitting-3.JPG )