### Settings Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Configurable settings for dimensions, affecting appearance and rendering. ```APIDOC ## Settings ### Description These global settings can be modified to customize the appearance and behavior of dimensions. ### Available Settings * **DIMENSION_LINE_WIDTH** (default: .5): Width of dimension lines. * **DIMENSION_HEIGHT** (default: .1): Height of lines (Z axis). * **DIMENSION_ARROW_WIDTH** (default: .5): Width of arrows. * **DIMENSION_ARROW_LENGTH** (default: 4): Length of arrows. * **DIMENSION_ARROW_HOLLOW** (default: 1): Value between .1 and 1, controlling arrow hollowness. * **DIMENSION_FONT_SIZE** (default: DIMENSION_LINE_WIDTH): Font size for dimensions. * **DIMENSION_COLOR** (default: `black`): Color of the dimensions. * **DIMENSION_RENDER_MODE** (default: `DIMENSION_RENDER_MODE_2D`): Rendering mode. Can be `DIMENSION_RENDER_MODE_2D` or `DIMENSION_RENDER_MODE_3D`. ``` -------------------------------- ### Include Library Files Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Include the necessary constant and dimension definition files from the openscad-new-dimensions library. ```openscad include ; include ``` -------------------------------- ### Label Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Creates a text label that can be placed and oriented within the project. ```APIDOC ## Label ### Description Creates a text label. The label can be centered within a bounding box, rotated, and extruded. ### Signature ```scad Label(string, bbox=[0, 0], angle=0, height); ``` ### Parameters * `string` (string) - The text to display. Defaults to the parent module's name if not defined. * `bbox` (array) - Bounding box to center the label within. Defaults to `[0, 0]`. * `angle` (number) - Angle to rotate the label. Defaults to `0`. * `height` (number) - Height to extrude the label along the Z axis. Defaults to `undefined`. ``` -------------------------------- ### Create a Label Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Use the Label module to display text. The text can be centered within a bounding box, rotated, and extruded along the Z axis. ```openscad Label(string, bbox=[0, 0], angle=0, height); ``` -------------------------------- ### Include Library Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Include the necessary files from the OpenSCAD New Dimensions library to use its functions. ```APIDOC ## Include Library ### Description Include the constants and dimension modules from the library. ### Code ```scad include ; include ``` ``` -------------------------------- ### Create an Angle Overview Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Use the AngleOverview module to display a representation of an angle needed for material cuts, useful for top-down views. Customize the angle, height, label, zoom, and maximum width. ```openscad AngleOverview(angle, height, label="", zoom=2, max_width=20); ``` -------------------------------- ### Create an Angle Representation Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Use the Angle module to draw an arc representing an angle. Optionally, include spokes and customize the radius, label angle, and label offset. ```openscad Angle(angle, radius=10, label_angle=0, label_offset=10, show_spokes=false, spokes_overflow=2); ``` -------------------------------- ### Create a Linear Dimension Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Use the Dimension module to represent a linear measurement. Customize the length, line width, and label location. ```openscad Dimension(length, line_width=DIMENSION_LINE_WIDTH, loc=DIMENSION_CENTER); ``` -------------------------------- ### Dimension Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Creates a linear dimension line with an optional label. ```APIDOC ## Dimension ### Description Creates a linear dimension line. Allows customization of line width and label position. ### Signature ```scad Dimension(length, line_width=DIMENSION_LINE_WIDTH, loc=DIMENSION_CENTER); ``` ### Parameters * `length` (number) - The length of the dimension line. Defaults to `undefined`. * `line_width` (number) - The width of the dimension line. Defaults to `DIMENSION_LINE_WIDTH`. * `loc` (enum) - The location of the dimension label. Choices: `DIMENSION_CENTER`, `DIMENSION_LEFT`, `DIMENSION_RIGHT`, `DIMENSION_OUTSIDE`, `DIMENSION_ABOVE`, `DIMENSION_UNDER`. Defaults to `DIMENSION_CENTER`. ``` -------------------------------- ### AngleOverview Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Displays a representation of the angle needed for material cuts, viewed from above. ```APIDOC ## AngleOverview ### Description Displays a visual representation of an angle, useful for blueprints showing material cut angles. It can include a label and be scaled. ### Signature ```scad AngleOverview(angle, height, label="", zoom=2, max_width=20); ``` ### Parameters * `angle` (number) - The angle to display. Defaults to `undefined`. * `height` (number) - The height of the polygon representing a material cut side. Defaults to `undefined`. * `label` (string) - A label to display with the overview. Defaults to `""`. * `zoom` (number) - Scales the entire angle overview. Defaults to `2`. * `max_width` (number) - The maximum width of the polygon representing a material cut side. Defaults to `20`. ``` -------------------------------- ### Angle Source: https://github.com/adrien-delhorme/openscad-new-dimensions/blob/main/README.md Represents an angle with an arc and optional spokes. ```APIDOC ## Angle ### Description Represents an angle using an arc. Can optionally display spokes and customize label appearance. ### Signature ```scad Angle(angle, radius=10, label_angle=0, label_offset=10, show_spokes=false, spokes_overflow=2); ``` ### Parameters * `angle` (number) - The angle value. Defaults to `undefined`. * `radius` (number) - The radius of the arc. Defaults to `10`. * `label_angle` (number) - Angle to rotate the label. Defaults to `0`. * `label_offset` (number) - Offset for the label. Defaults to `10`. * `show_spokes` (boolean) - Whether to show spokes. Defaults to `false`. * `spokes_overflow` (number) - How much the spokes exceed the arc's radius. Defaults to `2`. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.