News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

what am I doing wrong?

Started by paul craig, April 27, 2013, 07:35:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paul craig

If you have seen my additions this last week to the 3d printing thread I started, you will see that I have created a couple of images to print out. However, there seems to be an interesting problem that I am having difficulty understanding and overcoming.

The attached file is a saddle tank for a model locomotive that I am hoping to 3d print. On the left is the original drawing I did, which involved 4 extrusions. The saddle itself, then the 3 supports. I drew, using circle centre for the supports. for the saddle, I drew vertical uprights, and all the  curves are variants on circle centre which are then shortened in the info box, then I use
shift e to get them to join at intersection. then I created a closed box using the b command, and finally made them all 4 separate planes.  I then moved to the 3d drawing.

I created a drawing centre to ensure that I placed the model always in the positive mode.

Moved one copy of the three supports to the main drawing, and extruded. (use the centre marks, and place them x=50, y-0
z-31.375. Use X extrude and point relative to extrude 15 units at 90 degrees in XY axis.
Move main shape to x=50, y=10,Z=31.375, extrude using x to 72 using point relative in xy axis. Next you could use solid add
and you should get a one piece item. Next export to dxf, using 2010 version and polygons. Finally import into Meshlab, and using tools do you get a water tight mesh.

Now use the other main shape ensure it is a plane., and set it at x=150, y=0, z=31.375, then extrude, using x point relative, 62 at 90 degrees XY. make sure it is a solid, then again save as DXF and export into meshlab. now check for watertight mesh,
is it solid. My test piece is slightly wrong in that the saddle is too long, should only be 62, but not a problem for this testing.

Thing is my second one was, but the first not, and I can see no logic to it, there is no bleed out from the supports, they are properly  inserted into the main body, so why did I get hole in the first, and not in the second??

Any ideas. What is the difference between solid add, and solid define when you are exporting, since a simple soul such as me would always tend to go for solid define. why is this wrong??

Paul

prl

#1
Paul,

The drawing you attached has both saddle solids as being 72 units tall.  Also the three solid cylinders each consist of three cylinders on top of each other.  In other words, you have nine cylinders.

You should use solid add to make a solid of the cylinders and the saddle solid.  Solid Define isn't the proper command since it will not remove the internal overlaps.

Also when I removed the extra cylinders, two of them aren't solids but extruded circles.  Perhaps you forgot to define them as a plane before you extruded. See jpg.

edit:  poking around your drawing some more, some of the overlapping cylinders are proper solids.  So not sure how you got to this point with the mixed hollow and solid cylinders overlaying themselves.  Anyway, I removed the hollow extrusions and kept only one solid cylinder extrusion (each), and did the solid add between the cylinders and the saddle.  Should work now.  File attached.

DrollTroll

Solid Define is essentially "Make all these selected items one group, but call it a 'solid' instead of a 'group'". Doesn't do anything to the actual geometry. Doesn't make holes where there aren't any as Solid Subtract would. Doesn't remove overlapping geometry as Solid Add would.
25 years with DesignCAD

paul craig

DT I think you are missing the point. I have converted all the circles to planes before, and I thought I had done so this time, so if I had not I apologise, But there is then a problem in that converting to a plane does not always seem to stick.

However, after taking mark's advice, I drew the cylinders as I should and extruded them so that they stuck inside the saddle shape, and then solid added, but as I said, did not get a mesh solid, so what am I missing.

In fact it doesn't matter what length the saddle is for the test, there still seems to be a problem area with the interface.

However prl, I will try again and see whether in making sure I have all cylinders I resolve the problem. However, as said, I seem to have problems converting the circle to planes and for them to stay as such. Is this an issue with anyone else?

paul

paul craig

ok, have gone back, made sure the circles were planes, and extruded the cylinders into the saddle.
Then I used solid add, and then saved and exported. Open in meshlab, and still get the holes in the mesh.

So what is happening. i appreciate I might not be the best at doing things, but each circle was converted to a plane,
once they were extruded THROUGH the saddle, I then needed to move the saddle around to ensure I solid add each individual, and then got all 3. in gourand, it all coloured up properly, so I exported in DXF, and re opened, guess what holes again.

this is the 6th time I have tried this, and somehow on this particular shape this seems to me to be some kind of glitch.
I have attached the most recent variant, so show me please what I am doing wrong.
Paul

Dr PR

Paul,

1. You are working with lines. NEVER create anything to be used in a 3D drawing with lines. ALWAYS use planes (polygons). It is wasted energy to create a bunch of lines, then combine them into one line, and then convert that line into a plane (polygon).

Just start by drawing polygons! These will always extrude to create true solids.

Lines will never extrude to create true solids. Extra line fragments will extrude into planes. If these are internal to a solid (or congruent with a surface facet) they will screw up 3D printing.

2. Look at the attached image.

The two cylinders on the left have been combined using "Solid Define." As DT says, all "Solid Define" does is create a special type of group that is called a "solid." It doesn't combine the two solids into one real solid. The internal surfaces are taboo with 3D printing.

The two cylinders on the right have been combined with "Solid Add." There are no internal surfaces. This will work with 3D printing.

****

Note: "Solid Define" is useful for causing non-solid objects to behave like solids for some operations. For example, if you define a plane to be a solid you can subtract a cylinder from the plane. This is a way to punch holes in curved grid surfaces.

You can also select a bunch of individual non-overlapping solids and define them to be a single "solid" (group of solids that behaves like a single solid). Then you can use this "solid" (group of solids) as a single object with the solid Boolean operations.

For example, suppose you need to drill 100 holes in a plate. You could create 100 cylinders and then subtract them one by one (100 operations) with "Solid Subtract." Or, you could select the 100 cylinders, combine them with "Solid Define," and then use a single "Solid Subtract" to subtract them all from the plate.

3. Converting a closed line to a plane always works - if you remember to do it. However, if the line is not fully closed, as often happens when working with lines, it will not convert to a plane.

When you draw lines you may not get all points in the same geometric plane (there are many ways that this can happen). If you try to convert these non-planer lines into a "plane" (planar polygon) all bets are off with what you will get.

These are examples of OPERATOR PROBLEMS that are inherent in drawing in 3D with lines. These are not DesignCAD problems.

If you always draw with planes instead of lines, you will NEVER have a failure to create a plane (polygon). Furthermore, the "Plane" function always create a true polygon - all points in the same geometric plane.

If you are going to work in 3D, WORK IN 3D!

Phil
DesignCAD user since 1987

prl

Quote from: paul craig on April 27, 2013, 02:30:44 PM
this is the 6th time I have tried this, and somehow on this particular shape this seems to me to be some kind of glitch.

Paul,  the latest file you attached has a properly formed solid in it.  Good work as far as I can tell.  I exported it to SketchUP without any issues.  Maybe it is the "meshlab" program.

MarkX

#7
Quote from: paul craig on April 27, 2013, 02:30:44 PM
ok, have gone back, made sure the circles were planes, and extruded the cylinders into the saddle.
Then I used solid add, and then saved and exported. Open in meshlab, and still get the holes in the mesh.
Hi Paul,

The saddle looks good to me.

When I explode everything, the bottom profile (with the holes) has been made with invisible lines. I fear that DC may not be doing the export right. If DC erases the hidden lines from the export, then that might account for the leaking.

Does the meshlab program allow you to see where the leaking is occurring?

Good luck!
Mark



MarkX

Quote from: prl on April 27, 2013, 03:45:49 PM
Quote from: paul craig on April 27, 2013, 02:30:44 PM
this is the 6th time I have tried this, and somehow on this particular shape this seems to me to be some kind of glitch.

Paul,  the latest file you attached has a properly formed solid in it.  Good work as far as I can tell.  I exported it to SketchUP without any issues.  Maybe it is the "meshlab" program.
Did you export as DWG or DXF?

Have fun,
Mark

prl

#9
Quote from: MarkX on April 27, 2013, 04:01:42 PM
Did you export as DWG or DXF?

I exported as dwg.  I'm assuming one gets the same thing with dxf but I'll check.


Edit:

I exported as dxf.  Zipped file attached.  It too is fine.  Note when I export I use the rectangular mesh setting.

paul craig

Mark, I export as DXF using the export as polygon function. I did say before, ::) I used the export function in dcad, and version 2010 of DXF.
I am still unsure as to what the real difference is between dxf and dwg, since they are both, I think autocad functions.

Prl, thanks still not sure why. I am a bit worried  about creating cylinders for the function I want, since I am not sure where I can put the centre of the cylinder. I know this sounds stupid, but whilst I can draw a cylinder using the 3d functions, how do I know and understand where to place it, since I am not at this time certain where the handle would be??

Phil, ok I understand what you say, but, given the shape of my saddle, how do I create that with the solid tools in dcad, or how else would you produce that shape? Please explain to me, I really do want to learn because rapid prototyping has real value to me.

Paul

MarkX

#11
Quote from: prl on April 27, 2013, 05:17:06 PM
Quote from: MarkX on April 27, 2013, 04:01:42 PM
Did you export as DWG or DXF?
I exported as dwg.  I'm assuming one gets the same thing with dxf but I'll check.
As I think about it, whether it renders nicely in SU is irrelevant -- it already renders nicely in DC. How it appears visually in either program is unimportant because neither program understands true solids.

The problem is, there appears to be some type of crack or glitch in the exported product that paul's polymesh program.

Thanks,
Mark

MarkX

Quote from: paul craig on April 27, 2013, 05:20:25 PM
Mark, I export as DXF using the export as polygon function. I did say before, ::) I used the export function in dcad, and version 2010 of DXF.
Yes, but I was asking PRL how he did his export.

Quote
Prl, thanks still not sure why. I am a bit worried  about creating cylinders for the function I want, since I am not sure where I can put the centre of the cylinder. I know this sounds stupid, but whilst I can draw a cylinder using the 3d functions, how do I know and understand where to place it, since I am not at this time certain where the handle would be??
If you draw using the cylinder tool, and you have sticky handles on, you can move the cylinder right at its top center

Does your meshlab software tell you exactly where the leak is? That might give us a clue how to find a work-around.

Mark

prl

Quote from: MarkX on April 27, 2013, 07:06:18 PM
As I think about it, whether it renders nicely in SU is irrelevant --

SU allows me to verify the quality of the DC export.  It highlights malformed assemblies and incorrect (backwards) surface normals.

In this case, all appears fine with the dxf export.  Hard to say what is happening.

paul craig

Hi guys, well my first test print has come through, although I have not yet actually touched it, attached are the photos.
The saddle has come out pretty nearly 100%, but the boiler unit is more of a problem.

I have got word back from the guy at Meshlabs, and frankly I am totally confused. The holes were not where I expected them to be. I expected them to be in the junction with the cylinders, but in fact they were on the main body, which was exactly the same as that without the cylinders. It was in the bottom corners of the saddle itself, where there were curves. Frankly looking at the hole, it was soooooooooo tiny, and so far I cannot find a way of finding it in DCAD. It is on the outside corners of the saddle itself on the bottom where the cylinders were, and all it was was one part of the curve not being a complete polygon. It is relatively easy to fix in Meshlabs but a palaver.

if you want to see the fix, and help you decide whether to go with meshlabs, I will respond to a pm.

As you can see the boiler assembly is a bit of a dog's breakfast, but for a first test, it is interesting.

paul