How to avoid generating line between joint?
-
As I said before...
Work inside a group.
Draw all of the faces at z=0...
Erase all edges with 2 faces [coplanar].
PushPull the one remaining face up as needed...
Result = 3D ladder with NO inner faces or stray edges... -
Hi Tig,
As shown in my second photo, I made the rungs irregular in height. And I want the side bar and rungs made of PFC channel in real. So I have to extrude the side bar and rung in different direction seperately.
Regards,
Cean
-
No you don't !
First make a single 'ladder' face as I explained before... and extrude it up the maximum height.
Now add edges to form the rungs over the face at this topmost height, and PushPull the newly split off rung-face down to suit - at this point you won't get the internal faces problems - but you will get some coplanar edges formed on the sides where the rung is lowered... but when you are done you can test thegroup.entities.to_a
for any edges that haveedge.faces[1]
- they all should - AND those whose faces are coplanar -edge.faces[0].normal==edge.faces[1].normal
and.erase!
them... You can of course add edges on the bottom face of the 'ladder' and PushPull those rungs up too, so that they then have no faces coplanar with the side members........
This is somewhat simplified outline, but it should give you the idea. -
I am trying to carve the ladder out from a big cube.
New code, new approch and new problem.
-
Should work
@entities.to_a.each{|e|e.erase! if e.valid? and e.class==Sketchup::Edge and edge.faces[1] and edge.faces[0].normal==edge.faces[1].normal}
No need to==true
though.
but I notice you have some reversed faces so add a test like@entities.to_a.each{|e| e.erase! if e.valid? and e.class==Sketchup::Edge and edge.faces[1] and (edge.faces[0].normal==edge.faces[1].normal or edge.faces[0].normal.reverse==edge.faces[1].normal) }
What errors do you get ? -
the PFC channel is not out.
Not understand all this code below. Must be something wrong.
@entities.to_a.each{|e|e.erase! if e.valid? and e.class==Sketchup;;Edge and edge.faces[1]==true and edge.faces[0].normal==edge.faces[1].normal}
-
Now the problem is un-wanted face. I added labels on the photo.
-
In order of your added notes...
The part that is 'OK' has at least one face reversed the wrong way [blue] ?
The part that isn't 'cutting though' - is the pushpull distance the same and the 'ctrl' key option set 'false' ? Also is the face you are pushpulling oriented the same way as the other one ?
The thin end wall seems to arise because the pushpulled face is not exactly the same size and the hole you desire - so a thin 'rung' remains.
To make the PFA profile... once all if the ladder's form is done you draw the profile of the desired 'hole' on the end face and pushpull it along the whole length until what's left is the PFA ???
This should all be relatively straightforward.
Make it manually and then replicate the steps in your code - it's quite easy
-
Hooray! I knew you could do it !
-
Hi TIG,
Finally made it and got my mesh.
To cut through, need to cut from the opposite direction.
To cut in (make a shell), need to cut from outside to inside.No need to do all the |e|e.erase! ... check.
Thanks
Advertisement