Category Archives: Computer Science

Final Halloween Onshape: Build a 3-D Diorama

Think of a pop-up book or a stage set. Flat cutouts stand at different distances from you, and that’s what makes the scene feel deep. Today you’ll build a Halloween scene in Onshape the same way, putting your shapes on different planes so the scene has a back, a middle and a front. When you rotate the model, the layers slide apart. That’s the 3-D effect we’re after.

Requirements

  • Planes: use at least 2 planes. 3 planes earns full credit. Plane 1 should be about 30 mm in front of the Front plane, and Plane 2 about 60 mm in front.
  • Shapes: at least 5 solid shapes (6 or more for full credit), with at least one on every plane.
  • Symmetric: at least 2 shapes made with the Symmetric constraint across a construction line (a bat, a ghost, a tombstone, a pumpkin face…).
  • Extrude: every plane has at least one extruded shape. Keep extrudes 5 mm or less.
  • Revolve: at least one shape is a revolve (a moon, a pumpkin, a cauldron…).
  • Fully defined: at least one sketch has no blue lines.
  • Overlap: something in front must partly cover something behind it.

Steps

Step 1) Start a new document and set it to millimeters.

Step 2) Plan your scene. Decide what goes in the back (moon, hills, a haunted house), the middle (tombstones, a dead tree) and the front (bat, pumpkin, fence). Big, far-away things go in back. Small, close-up things go in front.

Step 3) Back layer. Make a sketch on the Front plane and draw your background shapes. For a moon, draw a half circle whose flat side sits on a vertical construction line, then Revolve it around that line to make a sphere. Extrude the rest (hills, house) 3–5 mm.

Step 4) Make Plane 1. Click the Plane tool, select the Front plane, choose Offset, and type 30 mm. Rename it Middle.

Step 5) Middle layer. Make a new sketch on Middle. Draw your middle shapes. Use a construction line and the Symmetric constraint to make at least one of them perfectly even. Extrude 3–5 mm.

Step 6) Make Plane 2. Same as Step 4, but offset 60 mm from the Front plane. Rename it Front Layer.

Step 7) Front layer. Sketch on Front Layer and add your closest objects. Make sure at least one of them covers part of something behind it.

Step 8) Check your depth. Orbit the model about 30° to the side. Your layers should separate like the example above. For an extra-dramatic look, open the view cube menu and turn on Perspective.

Step 9) Screenshot #2. Open your best symmetric sketch, turn on Show Constraints, and take a screenshot. The symmetric markers and the dashed construction line must be visible.

Step 10) Submit. Put both screenshots in a Google Doc:

  1. Screenshot #1: your finished scene, orbited so the layers are clearly separated.
  2. Screenshot #2: your constraints shot from Step 9.

Watch Out!

  • A revolve is as thick as it is wide. A moon with a 20 mm radius sticks 20 mm forward and can crash into the next plane. Keep revolved shapes small, under about 12 mm radius.
  • Extrude toward the viewer, and keep it thin. A 40 mm extrude on the back layer will swallow your middle layer.
  • Straight on, it will look flat. That’s normal! Orbit the model to see the depth.

Grading Rubric (100 points)

CategoryPointsWhat earns the points
Planes & depth253 planes = 25
2 planes = 20
1 plane = 10
Number of shapes206 or more = 20
5 = 17
4 or fewer = 10
(at least one shape on every plane)
Required tools25Symmetric on 2+ shapes = 10
At least 1 revolve = 5
Extrude on every plane = 5
At least 1 fully defined sketch = 5
Constraints screenshot15Show Constraints is on, with symmetric markers and the construction line clearly visible
Theme & craft15Clearly Halloween; front objects overlap back objects; shapes are clean and nothing crashes through another plane
Total100

Some Examples of Student Work

Old version

Shape as A New Plane

Concept; A Face of a shape can be its own new plane for sketches

The Assignment. Part 1

Step 1) Create 3 circles whose radii are 10,20 and 25 MM . Make sure it’s fully defined (no blue) .

Step 2) Extrude the outer rim :

Step 3) Create a new sketch on the face of the outer rim. Call this sketch “sketch on face”:

Step 4) Create an extrude on this plane. You can do whatever you like, below is one example of it could look like:

How to use Use

Step 1) On the front plane, create these 2 circles dimensioned.

Step 2) Add an Extrude

Step 3) Now make a sketch on the TOP plane and use the Use project tool to create a line with the inner circle. Click the image below to expand the image.

Step 4) The top plane now looks like this. The line highlighted in yellow is what we created in the prior step with the Use command:

Step 5) Create a trapezoid with that line as a base. Something like this :

Step 6) Take a screenshot of this and put it into a google doc. I need to see the above marks (showing that you used the “use” command)

Step 7) Make a second picture. I want a 5 sided shape and for you to revolve that around a line. Submit that as the second screenshot.

Show/Hide Constraints Do Now

On the Top plane, make this shape. Ensure the corner is centetered at the orign. Use Corner rectangle:

Step 2) add teh arc:

Step 3) Lines and make 1 tangent:

Step 4) Turn on “show constraints” and take a screenshot. Make sure that you have the same constraints that mine does

Below is the a screenshot of what your constraints should be :

Midpoint and Construction Lines

Step 1) Crate a 2.5 by 2 rectangle and use Corner, centered at origin

Step 2) Add 2 points and make them midpoints:

Step 3) Add a construction line between the midpoints (link)

Step 4) offset the perimiter by 0.25

Step 3) Extrude the outside only:

Step 4) Add a 0.1 Chamfer to one side:

Step 5) On the other side, add a small filet.

Step 6) Play with the chamfer and fillet(increase sizes) until you understand the difference. In your google doc paste a screenshot of the 3 shape so I can see the filet and the chamfer . And explain the difference, physically, between the 2