-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
difference() problem with extruded polygon in CGAL (F6) mode #10
Comments
update: i've tried latest version and git version. actually i've got two modules (male() and female()), male() suddenly started to work, but female() doesn't and in latest git (saying: OpenSCAD 2011.05.27) it's just vice-versa (male() doesn't work again, but female() does). module pagoda(scale=1, height=1, ratio=2, center=true) {
scale([scale,scale])
linear_extrude(height=height, center=center)
polygon(points=[[-1,1],[1,1],[1*ratio,-1],[-1*ratio,-1]], paths=[[0,1,2,3]]);
}
module female() {
difference() {
cube([4,3,2], center=true);
translate([0,0.6,0]) pagoda(ratio=1.5);
}
}
module male() {
difference() {
pagoda(ratio=2, scale=0.9);
//translate([0,-0.7]) pagoda(ratio=2);
translate([0,-0.21]) pagoda(ratio=2, scale=0.7, height=1.1);
}
}
//female();
male(); |
i've restarted openscad again and both modules are working. must be some race condition or something. i don't understand... |
Happend again! |
I'm having the same or a similar problem. Here's a simple code example that shows it. Does anyone have any ideas on how to work around the problem? Flush caches does not work for me at all. Thanks, Scott FRAGMENTS=40; module drawCylinder(depth, radius) module cubeWithHoles(x,y,z)
} cubeWithHoles(5,5,5); |
I believe this was fixed in ad0f9f5 |
With the 12/7/2011 Windows install, I am still seeing failures with module fails1() { difference() { cube([50,50,50]); rotate(90, [0,0,0]) % cylinder(25, 67.5, center = true); } } module fails2() { difference() { cube([50,50,50]); rotate(90, [0,0,0]) %cylinder(25, 65.5, center = true); } } fails1(); translate([60,0,0]) fails2(); Any ideas? Thanks, Scott On Mon, Dec 12, 2011 at 2:39 PM, Marius Kintel <
|
It looks good here. Note the difference between the % operator and the # operator: The former makes the object not take part in a CSG operation, the latter does. |
Any updates on this issue? |
Thanks! I got back to testing this weekend and everything works as Do you have a way to donate to the project? Thanks again, Scott On Mon, Dec 12, 2011 at 2:39 PM, Marius Kintel <
|
Right now all we've got is a Flattr account: https://flattr.com/thing/121566/OpenSCAD-The-Programmers-Solid-3D-CAD-Modeller |
Fix kevinmehall#9 - Bug in creating Value object.
This renders properly with F5, but not with F6. IMHO there are no conflicting verticles, etc...
Parsing design (AST generation)...
Compiling design (CSG Tree generation)...
Compilation finished.
Rendering Polygon Mesh using CGAL...
Number of vertices currently in CGAL cache: 926
Number of objects currently in CGAL cache: 99
Top level object is a 3D object:
Simple: yes
Valid: yes
Vertices: 8
Halfedges: 24
Edges: 12
Halffacets: 12
Facets: 6
Volumes: 2
Total rendering time: 0 hours, 0 minutes, 0 seconds
Rendering finished.
The text was updated successfully, but these errors were encountered: