mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-12-07 19:32:06 +00:00
partition doc fix
This commit is contained in:
parent
ed4e3963bc
commit
f3f0521299
1 changed files with 5 additions and 0 deletions
|
|
@ -541,6 +541,7 @@ module partition_cut_mask(l=100, h=100, cutsize=10, cutpath="jigsaw", gap=0, cut
|
||||||
// partition(size, [spread], [cutsize], [cutpath], [gap], [spin], [$slop=]) CHILDREN;
|
// partition(size, [spread], [cutsize], [cutpath], [gap], [spin], [$slop=]) CHILDREN;
|
||||||
// Description:
|
// Description:
|
||||||
// Partitions an object into two parts, spread apart a small distance, with matched joining edges.
|
// Partitions an object into two parts, spread apart a small distance, with matched joining edges.
|
||||||
|
// If you only need one side of the partition you can use `$idx` in the children.
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// size = The [X,Y,Z] size of the object to partition.
|
// size = The [X,Y,Z] size of the object to partition.
|
||||||
// spread = The distance to spread the two parts by.
|
// spread = The distance to spread the two parts by.
|
||||||
|
|
@ -567,6 +568,10 @@ module partition_cut_mask(l=100, h=100, cutsize=10, cutpath="jigsaw", gap=0, cut
|
||||||
// partition(spread=12, cutpath="dovetail") cylinder(h=50, d=80, center=false);
|
// partition(spread=12, cutpath="dovetail") cylinder(h=50, d=80, center=false);
|
||||||
// partition(spread=12, cutpath="hammerhead") cylinder(h=50, d=80, center=false);
|
// partition(spread=12, cutpath="hammerhead") cylinder(h=50, d=80, center=false);
|
||||||
// partition(cutpath="jigsaw") cylinder(h=50, d=80, center=false);
|
// partition(cutpath="jigsaw") cylinder(h=50, d=80, center=false);
|
||||||
|
// Example(2D,Med): Using `$idx` to display only the back piece of the partition
|
||||||
|
// partition(cutpath="jigsaw")
|
||||||
|
// if ($idx==0) cylinder(h=50, d=80, center=false);
|
||||||
|
|
||||||
module partition(size=100, spread=10, cutsize=10, cutpath="jigsaw", gap=0, cutpath_centered=true, spin=0)
|
module partition(size=100, spread=10, cutsize=10, cutpath="jigsaw", gap=0, cutpath_centered=true, spin=0)
|
||||||
{
|
{
|
||||||
req_children($children);
|
req_children($children);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue