mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 22:28:16 +01:00
rename __private__ to __comm__
This commit is contained in:
parent
502ef06db2
commit
9d1804a4d1
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__angy_angz.scad>;
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__comm__/__angy_angz.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <matrix/__comm__/__m_rotation.scad>;
|
||||
|
||||
module along_with(points, angles, twist = 0, scale = 1.0, method = "AXIS_ANGLE") {
|
||||
|
@ -8,10 +8,10 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
include <__private__/__edge_r.scad>;
|
||||
include <__private__/__shape_arc.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__ra_to_xy.scad>;
|
||||
include <__comm__/__edge_r.scad>;
|
||||
include <__comm__/__shape_arc.scad>;
|
||||
|
||||
module arc(radius, angle, width, width_mode = "LINE_CROSS") {
|
||||
polygon(__shape_arc(radius, angle, width, width_mode));
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
include <__private__/__edge_r.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__ra_to_xy.scad>;
|
||||
include <__comm__/__edge_r.scad>;
|
||||
|
||||
function arc_path(radius, angle) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to2d.scad>;
|
||||
include <__comm__/__to2d.scad>;
|
||||
|
||||
function _combi(n, k) =
|
||||
let(
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__to2d.scad>;
|
||||
include <__private__/__angy_angz.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__to2d.scad>;
|
||||
include <__comm__/__angy_angz.scad>;
|
||||
|
||||
function _corner_ctrl_pts(round_d, p1, p2, p3) =
|
||||
let(
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__lines_from.scad>;
|
||||
include <__private__/__line_intersection.scad>;
|
||||
include <__comm__/__lines_from.scad>;
|
||||
include <__comm__/__line_intersection.scad>;
|
||||
|
||||
function _bijection_inward_edge_normal(edge) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
|
||||
function circle_path(radius, n) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
|
||||
function cross_sections(shape_pts, path_pts, angles, twist = 0, scale = 1.0) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__nearest_multiple_of_4.scad>;
|
||||
include <__comm__/__nearest_multiple_of_4.scad>;
|
||||
|
||||
module crystal_ball(radius, theta = 360, phi = 180) {
|
||||
phis = is_num(phi) ? [0, phi] : phi;
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__reverse.scad>;
|
||||
include <__comm__/__reverse.scad>;
|
||||
|
||||
module function_grapher(points, thickness, style = "FACES", slicing = "SLASH") {
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
|
||||
function helix(radius, levels, level_dist, vt_dir = "SPI_DOWN", rt_dir = "CT_CLK") =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
|
||||
module helix_extrude(shape_pts, radius, levels, level_dist,
|
||||
vt_dir = "SPI_DOWN", rt_dir = "CT_CLK",
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__in_line.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__in_line.scad>;
|
||||
|
||||
function in_polyline(line_pts, pt, epsilon = 0.0001) =
|
||||
let(
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__lines_from.scad>;
|
||||
include <__private__/__in_line.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__lines_from.scad>;
|
||||
include <__comm__/__in_line.scad>;
|
||||
|
||||
function _in_shape_in_line_equation(edge, pt) =
|
||||
let(
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__nearest_multiple_of_4.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__nearest_multiple_of_4.scad>;
|
||||
|
||||
module line2d(p1, p2, width, p1Style = "CAP_SQUARE", p2Style = "CAP_SQUARE") {
|
||||
half_width = 0.5 * width;
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__nearest_multiple_of_4.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__nearest_multiple_of_4.scad>;
|
||||
|
||||
module line3d(p1, p2, thickness, p1Style = "CAP_CIRCLE", p2Style = "CAP_CIRCLE") {
|
||||
r = thickness / 2;
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to_ang_vect.scad>;
|
||||
include <__private__/__m_rotation.scad>;
|
||||
include <__comm__/__to_ang_vect.scad>;
|
||||
include <__comm__/__m_rotation.scad>;
|
||||
|
||||
function m_rotation(a, v) = __m_rotation(a, v);
|
@ -8,6 +8,6 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__m_scaling.scad>;
|
||||
include <__comm__/__m_scaling.scad>;
|
||||
|
||||
function m_scaling(s) = __m_scaling(s);
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__angy_angz.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__angy_angz.scad>;
|
||||
include <matrix/__comm__/__m_rotation.scad>;
|
||||
|
||||
module path_extrude(shape_pts, path_pts, triangles = "SOLID", twist = 0, scale = 1.0, closed = false, method = "AXIS_ANGLE") {
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__reverse.scad>;
|
||||
include <__comm__/__reverse.scad>;
|
||||
include <matrix/__comm__/__m_scaling.scad>;
|
||||
|
||||
function path_scaling_sections(shape_pts, edge_path) =
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
include <__private__/__shape_pie.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__ra_to_xy.scad>;
|
||||
include <__comm__/__shape_pie.scad>;
|
||||
|
||||
module pie(radius, angle) {
|
||||
polygon(__shape_pie(radius, angle));
|
||||
|
@ -1,5 +1,5 @@
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__to2d.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__to2d.scad>;
|
||||
|
||||
function _px_line_zsgn(a) = a == 0 ? a : a / abs(a);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__to2d.scad>;
|
||||
include <__private__/__lines_from.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__to2d.scad>;
|
||||
include <__comm__/__lines_from.scad>;
|
||||
|
||||
function px_polyline(points) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__reverse.scad>;
|
||||
include <__comm__/__reverse.scad>;
|
||||
|
||||
module polysections(sections, triangles = "SOLID") {
|
||||
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__reverse.scad>;
|
||||
include <__private__/__polytransversals.scad>;
|
||||
include <__comm__/__reverse.scad>;
|
||||
include <__comm__/__polytransversals.scad>;
|
||||
|
||||
module polytransversals(transversals) {
|
||||
polygon(
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__ra_to_xy.scad>;
|
||||
|
||||
module ring_extrude(shape_pts, radius, angle = 360, twist = 0, scale = 1.0, triangles = "SOLID") {
|
||||
if(twist == 0 && scale == 1.0) {
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to2d.scad>;
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__to_ang_vect.scad>;
|
||||
include <__comm__/__to2d.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__to_ang_vect.scad>;
|
||||
|
||||
function _q_rotate_p_3d(p, a, v) =
|
||||
let(
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__nearest_multiple_of_4.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__nearest_multiple_of_4.scad>;
|
||||
|
||||
module rounded_cube(size, corner_r, center = false) {
|
||||
is_flt = is_num(size);
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__pie_for_rounding.scad>;
|
||||
include <__private__/__half_trapezium.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__pie_for_rounding.scad>;
|
||||
include <__comm__/__half_trapezium.scad>;
|
||||
|
||||
module rounded_cylinder(radius, h, round_r, convexity = 2, center = false) {
|
||||
r_corners = __half_trapezium(radius, h, round_r);
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
|
||||
module rounded_extrude(size, round_r, angle = 90, twist = 0, convexity = 10) {
|
||||
|
||||
|
@ -8,10 +8,10 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__pie_for_rounding.scad>;
|
||||
include <__private__/__half_trapezium.scad>;
|
||||
include <__private__/__trapezium.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__pie_for_rounding.scad>;
|
||||
include <__comm__/__half_trapezium.scad>;
|
||||
include <__comm__/__trapezium.scad>;
|
||||
|
||||
module rounded_square(size, corner_r, center = false) {
|
||||
is_flt = is_num(size);
|
||||
|
@ -8,10 +8,10 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
include <__private__/__shape_arc.scad>;
|
||||
include <__private__/__edge_r.scad>
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__ra_to_xy.scad>;
|
||||
include <__comm__/__shape_arc.scad>;
|
||||
include <__comm__/__edge_r.scad>
|
||||
|
||||
function shape_arc(radius, angle, width, width_mode = "LINE_CROSS") =
|
||||
__shape_arc(radius, angle, width, width_mode);
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__pie_for_rounding.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__pie_for_rounding.scad>;
|
||||
|
||||
function shape_cyclicpolygon(sides, circle_r, corner_r) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
|
||||
function shape_ellipse(axes) =
|
||||
let(
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__polytransversals.scad>;
|
||||
include <__private__/__reverse.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__polytransversals.scad>;
|
||||
include <__comm__/__reverse.scad>;
|
||||
|
||||
function _shape_path_extend_az(p1, p2) =
|
||||
let(
|
||||
|
@ -8,9 +8,9 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
include <__private__/__shape_pie.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__ra_to_xy.scad>;
|
||||
include <__comm__/__shape_pie.scad>;
|
||||
|
||||
function shape_pie(radius, angle) =
|
||||
__shape_pie(radius, angle);
|
@ -8,10 +8,10 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__pie_for_rounding.scad>;
|
||||
include <__private__/__half_trapezium.scad>;
|
||||
include <__private__/__trapezium.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__pie_for_rounding.scad>;
|
||||
include <__comm__/__half_trapezium.scad>;
|
||||
include <__comm__/__trapezium.scad>;
|
||||
|
||||
function shape_square(size, corner_r = 0) =
|
||||
let(
|
||||
|
@ -8,8 +8,8 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__ra_to_xy.scad>;
|
||||
include <__private__/__to_degree.scad>;
|
||||
include <__comm__/__ra_to_xy.scad>;
|
||||
include <__comm__/__to_degree.scad>;
|
||||
|
||||
function _superformula_r(angle, m1, m2, n1, n2 = 1, n3 = 1, a = 1, b = 1) =
|
||||
pow(
|
||||
|
@ -8,10 +8,10 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__pie_for_rounding.scad>;
|
||||
include <__private__/__half_trapezium.scad>;
|
||||
include <__private__/__trapezium.scad>;
|
||||
include <__comm__/__frags.scad>;
|
||||
include <__comm__/__pie_for_rounding.scad>;
|
||||
include <__comm__/__half_trapezium.scad>;
|
||||
include <__comm__/__trapezium.scad>;
|
||||
|
||||
function shape_trapezium(length, h, corner_r = 0) =
|
||||
__trapezium(
|
||||
|
@ -8,10 +8,10 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__to3d.scad>;
|
||||
include <__private__/__line_intersection.scad>;
|
||||
include <__private__/__in_line.scad>;
|
||||
include <__private__/__lines_from.scad>;
|
||||
include <__comm__/__to3d.scad>;
|
||||
include <__comm__/__line_intersection.scad>;
|
||||
include <__comm__/__in_line.scad>;
|
||||
include <__comm__/__lines_from.scad>;
|
||||
|
||||
function _trim_shape_any_intersection_sub(lines, line, lines_leng, i, epsilon) =
|
||||
let(
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
include <__private__/__angy_angz.scad>;
|
||||
include <__comm__/__angy_angz.scad>;
|
||||
|
||||
// slow but workable
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user