Showing posts with label CoCreate. Show all posts
Showing posts with label CoCreate. Show all posts

Tuesday, 25 November 2008

Dodecahedron

I fancied making a dodecahedron, an object with twelve pentagonal faces. It is an interesting shape and, as the sides slope at ~26°C, it can be made without support material. I searched the web for a 3D model for some time but could not find one. I also searched for how to model one in CoCreate, as it wasn't immediately obvious to me. That came up blank as well so I had to figure it out myself.

I started with a construction circle and divided it into 5 sectors with construction lines 72° apart. I joined the intersections to make the base pentagon.



I then extruded that to a height equal to the circle radius and with a draft angle of -26.56505°. This is the dihedral angle (2arctan((1+√5)/2)) minus 90°. That makes the base of the object and the first line of vertices above it.



I then made a new workplane on one of the partial faces. I projected the face onto the workplane and then added a construction circle through three of the points. A vertical line from the centre gives the missing fifth vertex where it meets the circle.



I then join the vertices to make the pentagon, extrude it inwards (negative) by the circle radius with the same negative draft angle.



That operation has generated two partial faces with all five vertices. I construct the pentagons from the vertices and extrude inwards by the circle radius until the shape is complete. A total of eight extrusions are required.



I then shelled the object to 2mm to make it hollow. That created a second part inside, revealing that the construction does not in fact make a complete solid. If that was important one could extrude one of the faces more than half way through, with no draft angle. I just deleted the second part.



The finished item is about 2.5 times initial circle radius across opposite flats. This one was based on a 10mm radius circle.



The file is available on Thingiverse.

Saturday, 28 June 2008

From illusion to creation

A few days ago I spent a frustrating evening trying to create this test shape in ArtOfIllusion: -

No matter what I did, I could not get a manifold object that could be exported as an STL file. Eventually I reduced the problem to the fact that AOI cannot do a simple boolean subtraction of two rectangular cubes correctly.



The result looks OK but it is non manifold, I think some of the triangles are the wrong way round.



Fixing
it with the Solid Editor produces this: -

So AOI is not really usable for engineering. It is open source, so theoretically I could fix it myself, but life is too short to fix my own bugs, let alone other peoples. I posted a bug report and moved on.

Speaking to one of my colleagues who does mechanical design for a living, it would seem that professional tools are much easier to use and you don't have to worry about operations on coincident faces, etc. He recommended CoCreate Modeling Personal Edition, which is free for non professional use. It is limited to 60 parts in one design and can only save designs in its own proprietary format, but it can export STL and VRML. It is Windows only and needs an internet connection every three days. It is however, very easy to use. I had a quick look at Google Sketchup and Blender but they did not seem as easy.

The way you model in CoCreate is that you start by drawing in 2D on Workplanes. Workplanes can be arbitrary, but generally are created on a face of the part you are building. The 2D drawing tool is called CoPilot. It shows lots of hints when lines are parallel or line up with things already drawn, and shows dimensions to nearby features. This makes it very easy to create 2D geometry with precise dimensions, or geometrical alignments. You can also draw construction lines to help you line things up.

When you have a 2D profile on a Workplane you can then Extrude it or Turn it to make a solid. This is similar to AOI, except that the 2D drawing in AOI is very primitive and it is hard to get exact dimensions. As well as adding material you can remove it with familiar machine operations like Mill, Bore, Punch, Stamp, Section and Shell. These would all take multiple steps in AOI. CoCreate also has the boolean operations: Unite, Intersect and Subtract, but whereas you have to do almost everything in AOI with booleans, I have not needed to use them so far in CoCreate.

Once you have your basic 3D form it is very easy to add chamfers, fillets, blends, etc, and surprisingly it is also easy to remove them again.

Nothing I have done so far, (including filling a hole with a cylinder of the same dimensions), has managed to create a non manifold shape. It is very quick and easy to make practical objects. Here are a couple of parts I modeled for my experimental z-axis as they appear on screen: -



I have no idea how I could have created these in AOI.