Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zauberwuerfel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
infra
zauberwuerfel
Commits
9cf0ad34
Unverified
Commit
9cf0ad34
authored
5 years ago
by
Leon Dietrich
Browse files
Options
Downloads
Patches
Plain Diff
add: Grundlage für Umlenkrollen
parent
723d64da
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
parts/Kabelumlenkrollen.scad
+27
-0
27 additions, 0 deletions
parts/Kabelumlenkrollen.scad
parts/lib/BasicFunctions.scad
+1
-0
1 addition, 0 deletions
parts/lib/BasicFunctions.scad
parts/lib/RoundRect.scad
+36
-0
36 additions, 0 deletions
parts/lib/RoundRect.scad
with
64 additions
and
0 deletions
parts/Kabelumlenkrollen.scad
+
27
−
0
View file @
9cf0ad34
/*
* Umlenkrollen. Wie immer sind alle Angaben in mm
*/
include <lib/BasicFunctions.scad>;
module spool(diameter, lenght, stone) {
$fn = get_render_correctness();
rotate_extrude(angle = 360, convexity = 2) {
difference () {
translate ([diameter / 4, 0, 0])
square([diameter / 2, lenght - 2 * stone], true);
translate ([(lenght - 2 * stone) +
((lenght - 2 * stone) / diameter) +
(diameter/(lenght - 2 * stone)),
0, 0])
circle(lenght - 2 * stone);
}
}
translate ([0, 0, (lenght / 2) - (stone / 2)])
linear_extrude(height=stone, center = true)
circle(diameter / 4);
translate ([0, 0, 0 - (lenght / 2) + (stone / 2)])
linear_extrude(height=stone, center = true)
circle(diameter / 4);
}
spool(30, 50, 5);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
parts/lib/BasicFunctions.scad
0 → 100644
+
1
−
0
View file @
9cf0ad34
function get_render_correctness() = ($preview == true) ? 15 : 360;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
parts/lib/RoundRect.scad
0 → 100644
+
36
−
0
View file @
9cf0ad34
include <BasicFunctions.scad>;
module full_double_round_rect(size, radius) {
$fn = get_render_correctness() ;
x = size[0] - radius / 2;
y = size[1] - radius / 2;
z = size[2] - radius / 2;
translate([radius, radius, radius])
minkowski() {
cube(size=[x,y,z]);
sphere(r=radius);
}
}
module flat_round_rect(size, radius) {
$fn = get_render_correctness() ;
x = size[0] - radius / 2;
y = size[1] - radius / 2;
z = size[2];
translate ([radius, radius, 0])
minkowski () {
cube(size=[x, y, z]);
cylinder(r=radius);
}
}
module half_double_round_rect(size, radius) {
union() {
full_double_round_rect(size, radius);
flat_round_rect([size[0], size[1], size[2] / 2], radius);
}
}
half_double_round_rect ([30, 40, 10], 5);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment