mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-19 10:09:39 +00:00
make docsgen happy
This commit is contained in:
parent
958dcf0b18
commit
1eac96f762
1 changed files with 14 additions and 14 deletions
28
edges.scad
28
edges.scad
|
@ -110,14 +110,14 @@ EDGE_OFFSETS = [
|
||||||
// Section: Edge Helpers
|
// Section: Edge Helpers
|
||||||
|
|
||||||
/// Internal Function: _is_edge_array()
|
/// Internal Function: _is_edge_array()
|
||||||
// Topics: Edges, Type Checking
|
/// Topics: Edges, Type Checking
|
||||||
// Usage:
|
// Usage:
|
||||||
// bool = _is_edge_array(x);
|
// bool = _is_edge_array(x);
|
||||||
// Description:
|
// Description:
|
||||||
// Returns true if the given value has the form of an edge array.
|
// Returns true if the given value has the form of an edge array.
|
||||||
// Arguments:
|
/// Arguments:
|
||||||
// x = The item to check the type of.
|
// x = The item to check the type of.
|
||||||
// See Also: edges(), EDGES_NONE, EDGES_ALL
|
/// See Also: edges(), EDGES_NONE, EDGES_ALL
|
||||||
function _is_edge_array(x) = is_list(x) && is_vector(x[0]) && len(x)==3 && len(x[0])==4;
|
function _is_edge_array(x) = is_list(x) && is_vector(x[0]) && len(x)==3 && len(x[0])==4;
|
||||||
|
|
||||||
|
|
||||||
|
@ -367,22 +367,22 @@ CORNER_OFFSETS = [
|
||||||
|
|
||||||
/// Internal Function: _is_corner_array()
|
/// Internal Function: _is_corner_array()
|
||||||
/// Topics: Corners, Type Checking
|
/// Topics: Corners, Type Checking
|
||||||
// Usage:
|
/// Usage:
|
||||||
// bool = _is_corner_array(x)
|
/// bool = _is_corner_array(x)
|
||||||
// Description:
|
/// Description:
|
||||||
// Returns true if the given value has the form of a corner array.
|
/// Returns true if the given value has the form of a corner array.
|
||||||
// See Also: CORNERS_NONE, CORNERS_ALL, corners()
|
/// See Also: CORNERS_NONE, CORNERS_ALL, corners()
|
||||||
function _is_corner_array(x) = is_vector(x) && len(x)==8 && all([for (xx=x) xx==1||xx==0]);
|
function _is_corner_array(x) = is_vector(x) && len(x)==8 && all([for (xx=x) xx==1||xx==0]);
|
||||||
|
|
||||||
|
|
||||||
/// Internal Function: _normalize_corners()
|
/// Internal Function: _normalize_corners()
|
||||||
/// Topics: Corners
|
/// Topics: Corners
|
||||||
// Usage:
|
/// Usage:
|
||||||
// corns = _normalize_corners(v);
|
/// corns = _normalize_corners(v);
|
||||||
// Description:
|
/// Description:
|
||||||
// Normalizes all values in a corner array to be `1`, if it was originally greater than `0`,
|
/// Normalizes all values in a corner array to be `1`, if it was originally greater than `0`,
|
||||||
// or `0`, if it was originally less than or equal to `0`.
|
/// or `0`, if it was originally less than or equal to `0`.
|
||||||
// See Also: CORNERS_NONE, CORNERS_ALL, corners()
|
/// See Also: CORNERS_NONE, CORNERS_ALL, corners()
|
||||||
function _normalize_corners(v) = [for (x=v) x>0? 1 : 0];
|
function _normalize_corners(v) = [for (x=v) x>0? 1 : 0];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue