mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-17 09:59:39 +00:00
Merge pull request #1162 from revarbat/revarbat_dev
Changed Wiki style links to Markdown style links, for future compatab…
This commit is contained in:
commit
d2e36b883c
4 changed files with 29 additions and 29 deletions
|
@ -47,7 +47,7 @@ _ANCHOR_TYPES = ["intersect","hull"];
|
||||||
// - Spin is a simple rotation around the Z axis.
|
// - Spin is a simple rotation around the Z axis.
|
||||||
// - Orientation is rotating an object so that its top is pointed towards a given vector.
|
// - Orientation is rotating an object so that its top is pointed towards a given vector.
|
||||||
// An object will first be translated to its anchor position, then spun, then oriented.
|
// An object will first be translated to its anchor position, then spun, then oriented.
|
||||||
// For a detailed step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a detailed step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// .
|
// .
|
||||||
// For describing directions, faces, edges, and corners the library provides a set of shortcuts
|
// For describing directions, faces, edges, and corners the library provides a set of shortcuts
|
||||||
// all based on combinations of unit direction vectors. You can use these for anchoring and orienting
|
// all based on combinations of unit direction vectors. You can use these for anchoring and orienting
|
||||||
|
@ -470,7 +470,7 @@ _ANCHOR_TYPES = ["intersect","hull"];
|
||||||
// PARENT() position(from) CHILDREN;
|
// PARENT() position(from) CHILDREN;
|
||||||
// Description:
|
// Description:
|
||||||
// Attaches children to a parent object at an anchor point. For a step-by-step explanation
|
// Attaches children to a parent object at an anchor point. For a step-by-step explanation
|
||||||
// of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// from = The vector, or name of the parent anchor point to attach to.
|
// from = The vector, or name of the parent anchor point to attach to.
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
|
@ -506,7 +506,7 @@ module position(from)
|
||||||
// PARENT() orient(anchor, [spin]) CHILDREN;
|
// PARENT() orient(anchor, [spin]) CHILDREN;
|
||||||
// Description:
|
// Description:
|
||||||
// Orients children such that their top is tilted in the direction of the specified parent anchor point.
|
// Orients children such that their top is tilted in the direction of the specified parent anchor point.
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// anchor = The anchor on the parent which you want to match the orientation of.
|
// anchor = The anchor on the parent which you want to match the orientation of.
|
||||||
// spin = The spin to add to the children. (Overrides anchor spin.)
|
// spin = The spin to add to the children. (Overrides anchor spin.)
|
||||||
|
@ -564,7 +564,7 @@ module orient(anchor, spin) {
|
||||||
// value (0 by default), or by the overriding `overlap=` argument. This is to prevent OpenSCAD
|
// value (0 by default), or by the overriding `overlap=` argument. This is to prevent OpenSCAD
|
||||||
// from making non-manifold objects. You can define `$overlap=` as an argument in a parent
|
// from making non-manifold objects. You can define `$overlap=` as an argument in a parent
|
||||||
// module to set the default for all attachments to it. For a step-by-step explanation of
|
// module to set the default for all attachments to it. For a step-by-step explanation of
|
||||||
// attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// from = The vector, or name of the parent anchor point to attach to.
|
// from = The vector, or name of the parent anchor point to attach to.
|
||||||
// to = Optional name of the child anchor point. If given, orients the child such that the named anchors align together rotationally.
|
// to = Optional name of the child anchor point. If given, orients the child such that the named anchors align together rotationally.
|
||||||
|
@ -619,7 +619,7 @@ module attach(from, to, overlap, norot=false)
|
||||||
// This works by setting the `$tag` variable, but it provides extra error checking and
|
// This works by setting the `$tag` variable, but it provides extra error checking and
|
||||||
// handling of scopes. You may set `$tag` directly yourself, but this is not recommended.
|
// handling of scopes. You may set `$tag` directly yourself, but this is not recommended.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// tag = tag string, which must not contain any spaces.
|
// tag = tag string, which must not contain any spaces.
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
|
@ -676,7 +676,7 @@ module tag(tag)
|
||||||
// get the correct behavior, every non-attachable module needs an invocation of force_tag, even ones
|
// get the correct behavior, every non-attachable module needs an invocation of force_tag, even ones
|
||||||
// that are not tagged.
|
// that are not tagged.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// tag = tag string, which must not contain any spaces
|
// tag = tag string, which must not contain any spaces
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
|
@ -722,7 +722,7 @@ module force_tag(tag)
|
||||||
// in force from a parent. If you use {{tag()}} it will override any previously
|
// in force from a parent. If you use {{tag()}} it will override any previously
|
||||||
// specified tag from a parent, which can be very confusing to a user trying to change the tag on a module.
|
// specified tag from a parent, which can be very confusing to a user trying to change the tag on a module.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// tag = tag string, which must not contain any spaces.
|
// tag = tag string, which must not contain any spaces.
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
|
@ -821,7 +821,7 @@ module tag_scope(scope){
|
||||||
// better to give it a tag that is not a remove tag or a keep tag. Such an object *will* be subject to
|
// better to give it a tag that is not a remove tag or a keep tag. Such an object *will* be subject to
|
||||||
// subtractions from other remove-tagged objects.
|
// subtractions from other remove-tagged objects.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// remove = String containing space delimited set of tag names of children to difference away. Default: `"remove"`
|
// remove = String containing space delimited set of tag names of children to difference away. Default: `"remove"`
|
||||||
// keep = String containing space delimited set of tag names of children to keep; that is, to union into the model after differencing is completed. Default: `"keep"`
|
// keep = String containing space delimited set of tag names of children to keep; that is, to union into the model after differencing is completed. Default: `"keep"`
|
||||||
|
@ -997,7 +997,7 @@ module diff(remove="remove", keep="keep")
|
||||||
// but if you have kept objects and want to operate on this difference object as a whole object using
|
// but if you have kept objects and want to operate on this difference object as a whole object using
|
||||||
// more tag operations, you will probably not get the results you want if you simply use {{tag()}}.
|
// more tag operations, you will probably not get the results you want if you simply use {{tag()}}.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// tag = Tag string to apply to this difference object
|
// tag = Tag string to apply to this difference object
|
||||||
// remove = String containing space delimited set of tag names of children to difference away. Default: `"remove"`
|
// remove = String containing space delimited set of tag names of children to difference away. Default: `"remove"`
|
||||||
|
@ -1075,7 +1075,7 @@ module tag_diff(tag,remove="remove", keep="keep")
|
||||||
// unioned with the result. Attachable objects should be tagged using {{tag()}}
|
// unioned with the result. Attachable objects should be tagged using {{tag()}}
|
||||||
// and non-attachable objects with {{force_tag()}}.
|
// and non-attachable objects with {{force_tag()}}.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// intersect = String containing space delimited set of tag names of children to intersect. Default: "intersect"
|
// intersect = String containing space delimited set of tag names of children to intersect. Default: "intersect"
|
||||||
// keep = String containing space delimited set of tag names of children to keep whole. Default: "keep"
|
// keep = String containing space delimited set of tag names of children to keep whole. Default: "keep"
|
||||||
|
@ -1138,7 +1138,7 @@ module intersect(intersect="intersect",keep="keep")
|
||||||
// but if you have kept objects and want to operate on this difference object as a whole object using
|
// but if you have kept objects and want to operate on this difference object as a whole object using
|
||||||
// more tag operations, you will probably not get the results you want if you simply use {{tag()}}.
|
// more tag operations, you will probably not get the results you want if you simply use {{tag()}}.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// tag = Tag to set for the intersection
|
// tag = Tag to set for the intersection
|
||||||
// intersect = String containing space delimited set of tag names of children to intersect. Default: "intersect"
|
// intersect = String containing space delimited set of tag names of children to intersect. Default: "intersect"
|
||||||
|
@ -1192,7 +1192,7 @@ module tag_intersect(tag,intersect="intersect",keep="keep")
|
||||||
// not tagged with the `keep` tags are combined into a convex hull, and the children tagged with the keep tags
|
// not tagged with the `keep` tags are combined into a convex hull, and the children tagged with the keep tags
|
||||||
// are unioned with the result.
|
// are unioned with the result.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// keep = String containing space delimited set of tag names of children to keep out of the hull. Default: "keep"
|
// keep = String containing space delimited set of tag names of children to keep out of the hull. Default: "keep"
|
||||||
// Example:
|
// Example:
|
||||||
|
@ -1231,7 +1231,7 @@ module conv_hull(keep="keep")
|
||||||
// but if you have kept objects and want to operate on the hull object as a whole object using
|
// but if you have kept objects and want to operate on the hull object as a whole object using
|
||||||
// more tag operations, you will probably not get the results you want if you simply use {{tag()}}.
|
// more tag operations, you will probably not get the results you want if you simply use {{tag()}}.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// keep = String containing space delimited set of tag names of children to keep out of the hull. Default: "keep"
|
// keep = String containing space delimited set of tag names of children to keep out of the hull. Default: "keep"
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
|
@ -1277,7 +1277,7 @@ module tag_conv_hull(tag,keep="keep")
|
||||||
// hide(tags) CHILDREN;
|
// hide(tags) CHILDREN;
|
||||||
// Description:
|
// Description:
|
||||||
// Hides all attachable children with the given tags, which you supply as a space separated string. Previously hidden objects remain hidden, so hiding is cumulative, unlike `show_only()`.
|
// Hides all attachable children with the given tags, which you supply as a space separated string. Previously hidden objects remain hidden, so hiding is cumulative, unlike `show_only()`.
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
// Sets `$tags_hidden` to include the tags you specify.
|
// Sets `$tags_hidden` to include the tags you specify.
|
||||||
// Example: Hides part of the model.
|
// Example: Hides part of the model.
|
||||||
|
@ -1312,7 +1312,7 @@ module hide(tags)
|
||||||
// show_only(tags) CHILDREN;
|
// show_only(tags) CHILDREN;
|
||||||
// Description:
|
// Description:
|
||||||
// Show only the children with the listed tags, which you sply as a space separated string. Only unhidden objects will be shown, so if an object is hidden either before or after the `show_only()` call then it will remain hidden. This overrides any previous `show_only()` calls. Unlike `hide()`, calls to `show_only()` are not cumulative.
|
// Show only the children with the listed tags, which you sply as a space separated string. Only unhidden objects will be shown, so if an object is hidden either before or after the `show_only()` call then it will remain hidden. This overrides any previous `show_only()` calls. Unlike `hide()`, calls to `show_only()` are not cumulative.
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
// Sets `$tags_shown` to the tag you specify.
|
// Sets `$tags_shown` to the tag you specify.
|
||||||
// Example: Display the attachments but not the parent
|
// Example: Display the attachments but not the parent
|
||||||
|
@ -1390,7 +1390,7 @@ module show_int(tags)
|
||||||
// (Z-) shaped to be diffed away from the face of parent attachable shape. If no tag is set then
|
// (Z-) shaped to be diffed away from the face of parent attachable shape. If no tag is set then
|
||||||
// `face_mask()` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
// `face_mask()` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
||||||
// For details on specifying the faces to mask see [Specifying Faces](attachments.scad#subsection-specifying-faces).
|
// For details on specifying the faces to mask see [Specifying Faces](attachments.scad#subsection-specifying-faces).
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// edges = Faces to mask. See [Specifying Faces](attachments.scad#subsection-specifying-faces) for information on specifying faces. Default: All faces
|
// edges = Faces to mask. See [Specifying Faces](attachments.scad#subsection-specifying-faces) for information on specifying faces. Default: All faces
|
||||||
// Side Effects:
|
// Side Effects:
|
||||||
|
@ -1433,7 +1433,7 @@ module face_mask(faces=[LEFT,RIGHT,FRONT,BACK,BOT,TOP]) {
|
||||||
// quadrant (X+Y+) shaped to be diffed away from the edge of parent attachable shape. If no tag is set
|
// quadrant (X+Y+) shaped to be diffed away from the edge of parent attachable shape. If no tag is set
|
||||||
// then `edge_mask` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
// then `edge_mask` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
||||||
// For details on specifying the edges to mask see [Specifying Edges](attachments.scad#subsection-specifying-edges).
|
// For details on specifying the edges to mask see [Specifying Edges](attachments.scad#subsection-specifying-edges).
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Figure: A Typical Edge Rounding Mask
|
// Figure: A Typical Edge Rounding Mask
|
||||||
// module roundit(l,r) difference() {
|
// module roundit(l,r) difference() {
|
||||||
// translate([-1,-1,-l/2])
|
// translate([-1,-1,-l/2])
|
||||||
|
@ -1496,7 +1496,7 @@ module edge_mask(edges=EDGES_ALL, except=[]) {
|
||||||
// be differenced away. The 3D corner mask shape should be designed to mask away the X+Y+Z+ octant. If no tag is set
|
// be differenced away. The 3D corner mask shape should be designed to mask away the X+Y+Z+ octant. If no tag is set
|
||||||
// then `corner_mask` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
// then `corner_mask` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
||||||
// See [Specifying Corners](attachments.scad#subsection-specifying-corners) for information on how to specify corner sets.
|
// See [Specifying Corners](attachments.scad#subsection-specifying-corners) for information on how to specify corner sets.
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// corners = Corners to mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: All corners.
|
// corners = Corners to mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: All corners.
|
||||||
// except = Corners to explicitly NOT mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: No corners.
|
// except = Corners to explicitly NOT mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: No corners.
|
||||||
|
@ -1545,7 +1545,7 @@ module corner_mask(corners=CORNERS_ALL, except=[]) {
|
||||||
// Given a 2D edge profile, extrudes it into a mask for all edges and corners bounding each given face. If no tag is set
|
// Given a 2D edge profile, extrudes it into a mask for all edges and corners bounding each given face. If no tag is set
|
||||||
// then `face_profile` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
// then `face_profile` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
||||||
// See [Specifying Faces](attachments.scad#subsection-specifying-faces) for information on specifying faces.
|
// See [Specifying Faces](attachments.scad#subsection-specifying-faces) for information on specifying faces.
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// faces = Faces to mask edges and corners of.
|
// faces = Faces to mask edges and corners of.
|
||||||
// r = Radius of corner mask.
|
// r = Radius of corner mask.
|
||||||
|
@ -1585,7 +1585,7 @@ module face_profile(faces=[], r, d, convexity=10) {
|
||||||
// then `edge_profile` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
// then `edge_profile` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
||||||
// For details on specifying the edges to mask see [Specifying Edges](attachments.scad#subsection-specifying-edges).
|
// For details on specifying the edges to mask see [Specifying Edges](attachments.scad#subsection-specifying-edges).
|
||||||
// For a step-by-step
|
// For a step-by-step
|
||||||
// explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// edges = Edges to mask. See [Specifying Edges](attachments.scad#subsection-specifying-edges). Default: All edges.
|
// edges = Edges to mask. See [Specifying Edges](attachments.scad#subsection-specifying-edges). Default: All edges.
|
||||||
// except = Edges to explicitly NOT mask. See [Specifying Edges](attachments.scad#subsection-specifying-edges). Default: No edges.
|
// except = Edges to explicitly NOT mask. See [Specifying Edges](attachments.scad#subsection-specifying-edges). Default: No edges.
|
||||||
|
@ -1647,7 +1647,7 @@ module edge_profile(edges=EDGES_ALL, except=[], convexity=10) {
|
||||||
// to the selected corners with the appropriate orientation. If no tag is set
|
// to the selected corners with the appropriate orientation. If no tag is set
|
||||||
// then `corner_profile` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
// then `corner_profile` sets the tag for children to "remove" so that it will work with the default {{diff()}} tag.
|
||||||
// See [Specifying Corners](attachments.scad#subsection-specifying-corners) for information on how to specify corner sets.
|
// See [Specifying Corners](attachments.scad#subsection-specifying-corners) for information on how to specify corner sets.
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// corners = Corners to mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: All corners.
|
// corners = Corners to mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: All corners.
|
||||||
// except = Corners to explicitly NOT mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: No corners.
|
// except = Corners to explicitly NOT mask. See [Specifying Corners](attachments.scad#subsection-specifying-corners). Default: No corners.
|
||||||
|
@ -1766,7 +1766,7 @@ module corner_profile(corners=CORNERS_ALL, except=[], r, d, convexity=10) {
|
||||||
// * Rotates this part so it's anchor direction vector exactly opposes the parent's anchor direction vector.
|
// * Rotates this part so it's anchor direction vector exactly opposes the parent's anchor direction vector.
|
||||||
// * Rotates this part so it's anchor spin matches the parent's anchor spin.
|
// * Rotates this part so it's anchor spin matches the parent's anchor spin.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
//
|
//
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
// anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
||||||
|
@ -2079,7 +2079,7 @@ module attachable(
|
||||||
// * Rotates this part so it's anchor direction vector exactly opposes the parent's anchor direction vector.
|
// * Rotates this part so it's anchor direction vector exactly opposes the parent's anchor direction vector.
|
||||||
// * Rotates this part so it's anchor spin matches the parent's anchor spin.
|
// * Rotates this part so it's anchor spin matches the parent's anchor spin.
|
||||||
// .
|
// .
|
||||||
// For a step-by-step explanation of attachments, see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// For a step-by-step explanation of attachments, see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
//
|
//
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
// anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER`
|
||||||
|
@ -2151,7 +2151,7 @@ function reorient(
|
||||||
// a = named_anchor(name, pos, [orient], [spin]);
|
// a = named_anchor(name, pos, [orient], [spin]);
|
||||||
// Description:
|
// Description:
|
||||||
// Creates an anchor data structure. For a step-by-step explanation of attachments,
|
// Creates an anchor data structure. For a step-by-step explanation of attachments,
|
||||||
// see the [[Attachments Tutorial|Tutorial-Attachments]].
|
// see the [Attachments Tutorial](Tutorial-Attachments).
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// name = The string name of the anchor. Lowercase. Words separated by single dashes. No spaces.
|
// name = The string name of the anchor. Lowercase. Words separated by single dashes. No spaces.
|
||||||
// pos = The [X,Y,Z] position of the anchor.
|
// pos = The [X,Y,Z] position of the anchor.
|
||||||
|
|
|
@ -1424,9 +1424,9 @@ function polygon_area(poly, signed=false) =
|
||||||
// If you provide a non-planar or collinear polygon you will get an error. For self-intersecting
|
// If you provide a non-planar or collinear polygon you will get an error. For self-intersecting
|
||||||
// polygons you may get an error or you may get meaningless results.
|
// polygons you may get an error or you may get meaningless results.
|
||||||
// .
|
// .
|
||||||
// Given a [[region|regions.scad]], returns the 2D coordinates of the region's centroid.
|
// Given a [region](regions.scad), returns the 2D coordinates of the region's centroid.
|
||||||
// .
|
// .
|
||||||
// Given a manifold [[VNF|vnf.scad]] then returns the 3D centroid of the polyhedron. The VNF must
|
// Given a manifold [VNF](vnf.scad) then returns the 3D centroid of the polyhedron. The VNF must
|
||||||
// describe a valid polyhedron with consistent face direction and no holes in the mesh; otherwise
|
// describe a valid polyhedron with consistent face direction and no holes in the mesh; otherwise
|
||||||
// the results are undefined.
|
// the results are undefined.
|
||||||
// Arguments:
|
// Arguments:
|
||||||
|
|
|
@ -1805,7 +1805,7 @@ module nut_trap_inline(length, spec, shape, l, height, h, nutwidth, anchor, orie
|
||||||
// fwd(1)text("\"head_size\"", size=.75,anchor=BACK);
|
// fwd(1)text("\"head_size\"", size=.75,anchor=BACK);
|
||||||
// }
|
// }
|
||||||
// Continues:
|
// Continues:
|
||||||
// The output is a [[struct|structs.scad]] with the following fields:
|
// The output is a [struct](structs.scad) with the following fields:
|
||||||
// .
|
// .
|
||||||
// Field | What it is
|
// Field | What it is
|
||||||
// ------------------ | ---------------
|
// ------------------ | ---------------
|
||||||
|
@ -1880,7 +1880,7 @@ function screw_info(name, head, drive, thread, drive_size, shaft_oversize, head_
|
||||||
// Note that square nuts are only available in "normal" thickness, and "thin" and "thick" nuts
|
// Note that square nuts are only available in "normal" thickness, and "thin" and "thick" nuts
|
||||||
// are only available for 1/4 inch and above.
|
// are only available for 1/4 inch and above.
|
||||||
// .
|
// .
|
||||||
// The output is a [[struct|structs.scad]] with the following fields:
|
// The output is a [struct](structs.scad) with the following fields:
|
||||||
// .
|
// .
|
||||||
// Field | What it is
|
// Field | What it is
|
||||||
// ------------------ | ---------------
|
// ------------------ | ---------------
|
||||||
|
|
|
@ -783,7 +783,7 @@ function prismoid(
|
||||||
// vnf = octahedron(size, ...);
|
// vnf = octahedron(size, ...);
|
||||||
// Description:
|
// Description:
|
||||||
// When called as a module, creates an octahedron with axis-aligned points.
|
// When called as a module, creates an octahedron with axis-aligned points.
|
||||||
// When called as a function, creates a [[VNF|vnf.scad]] of an octahedron with axis-aligned points.
|
// When called as a function, creates a [VNF](vnf.scad) of an octahedron with axis-aligned points.
|
||||||
// Arguments:
|
// Arguments:
|
||||||
// size = Width of the octahedron, tip to tip.
|
// size = Width of the octahedron, tip to tip.
|
||||||
// ---
|
// ---
|
||||||
|
|
Loading…
Reference in a new issue