1
0
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:
Justin Lin 2019-06-23 09:37:02 +08:00
parent 502ef06db2
commit 9d1804a4d1
60 changed files with 90 additions and 90 deletions

View File

@ -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") {

View File

@ -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));

View File

@ -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(

View File

@ -8,7 +8,7 @@
*
**/
include <__private__/__to2d.scad>;
include <__comm__/__to2d.scad>;
function _combi(n, k) =
let(

View File

@ -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(

View File

@ -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(

View File

@ -8,7 +8,7 @@
*
**/
include <__private__/__frags.scad>;
include <__comm__/__frags.scad>;
function circle_path(radius, n) =
let(

View File

@ -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(

View File

@ -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;

View File

@ -8,7 +8,7 @@
*
**/
include <__private__/__reverse.scad>;
include <__comm__/__reverse.scad>;
module function_grapher(points, thickness, style = "FACES", slicing = "SLASH") {

View File

@ -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(

View File

@ -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",

View File

@ -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(

View File

@ -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(

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -8,6 +8,6 @@
*
**/
include <__private__/__m_scaling.scad>;
include <__comm__/__m_scaling.scad>;
function m_scaling(s) = __m_scaling(s);

View File

@ -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") {

View File

@ -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) =

View File

@ -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));

View File

@ -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);

View File

@ -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(

View File

@ -8,7 +8,7 @@
*
**/
include <__private__/__reverse.scad>;
include <__comm__/__reverse.scad>;
module polysections(sections, triangles = "SOLID") {

View File

@ -8,8 +8,8 @@
*
**/
include <__private__/__reverse.scad>;
include <__private__/__polytransversals.scad>;
include <__comm__/__reverse.scad>;
include <__comm__/__polytransversals.scad>;
module polytransversals(transversals) {
polygon(

View File

@ -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) {

View File

@ -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(

View File

@ -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);

View File

@ -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);

View File

@ -8,7 +8,7 @@
*
**/
include <__private__/__frags.scad>;
include <__comm__/__frags.scad>;
module rounded_extrude(size, round_r, angle = 90, twist = 0, convexity = 10) {

View File

@ -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);

View File

@ -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);

View File

@ -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(

View File

@ -8,7 +8,7 @@
*
**/
include <__private__/__frags.scad>;
include <__comm__/__frags.scad>;
function shape_ellipse(axes) =
let(

View File

@ -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(

View File

@ -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);

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -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(

View File

@ -8,7 +8,7 @@
*
**/
include <__private__/__angy_angz.scad>;
include <__comm__/__angy_angz.scad>;
// slow but workable