Delftship Tutorial - Using Background Images
Delftship Tutorial - Using Background Images
mouse
Move points with the cursor keys. Add new faces manually Insert new points Insert new edges Add new layers Select faces Assign faces to a different layer Add stations Make a curved transom that ends perpendicular to the centerplane of the hull
Illustration 1: Linesplan used for this tutorial
Action
Select File => New from the mainmenu
Action
Select the edges as shown in image 3. You can select them one by one by clicking on each edge with the left mouse button. An easier and faster way is to select just one edge while keeping the Ctrl key on your keyboard pressed. DELFTship automatically traces and selects the connected edges. Select Edit => Edge => Crease from the mainmenu.
Action
Select Background image => Origin from the pop-up menu. The cursor now changes to a cross with a big O indication you're going to change the origin. Press the left mouse button somewhere on the background image and keep it pressed down. If you move the mouse around now you'll notice the background image being dragged around as well. If you release the mouse button again the viewport will resume to normal operation. Drag the image to the correct location. In this case the lowest point of the skeg should coincide with the baseline of your model (Z=0.0). The aft part of the transom should coincide with the aft perpendicular (X=0.0).
Action
Select Background image => Set scale from the pop-up menu. The cursor changes to a ruler to indicate you're changing the scale of the image. Now click on a point of the background image of which you know the exact coordinates. The further this point is away from the origin the better. Once a point has been selected another window shows up prompting for the coordinates of the selected point. Enter the correct coordinates in this point and close the window. In our example the coordinate of the uppermost point of the bow is 6.75, 1.64
Important: All new background images will automatically have the same scale applied as this one. This is particularly convenient if you're importing multiple background images originating from the same linesplan. So make sure you set the correct scale before importing the next background image! In our case we import the same image three times (once for each view) so having exactly the same scale for each image is crucial.
Action
Select Background image => Transparent color from the pop-up menu. Click on a spot of your background image with the color you want removed. The background image will now be redrawn in transparent mode. If you find the image still too dominant try blending it with the background. Use the Background image => Blending option from the pop-up menu and move the slide bar until you're satisfied.
Note: You can remove transparency again by repeating this process. Instead of clicking on a spot within the background image simply select a point outside the image.
Action
Select Background image => Tolerance from the pop-up menu. Experiment a bit with the value until you're satisfied with the appearance of the background image. For most jpeg images a tolerance of 35 works fine. The higher the compression rate of the file, the higher the tolerance needs to be.
Action
Select all of the edges from the deckline (see also step 2). From the main menu select Edit => Curve => New. A blue curve is now visible. It is better visible if you hide the control net. You can do this by selecting Display => Control net from the main menu. If the curve is still not visible select Display => Control curves to turn of the display of the control curves. Repeat this to add a control curve to the chine we've created in step 2. Add a control curve to the contourline. Select all edges on the centerplane of the ship, including the edges of the bow.
2)
Action
Turn of the control net (see step 9). Choose the plan view and select the deckline. Once the deckline is selected the controlpoints and edges used for this curve will be shown together with the curvature plot (the purple lines). If the curvature plot is not visible there are two possibilities: 1) The display of curvature plots is disabled. Check (or enable) it by selecting Display => Curvature from the mainmenu. The scale of the curvature plot is too small to be seen. You can increase or decrease the scale by pressing F10 or F9.
2)
Modifying the shape is done by selecting a controlpoint of the curve and dragging it to another location.
Move the controlpoints with the mouse to their new locations. Start with the startpoint and endpoint. Then move the interior points of the curve. If the deckline is roughly similar to that of the background image check your curvature plot. Make sure the curvature changes gradually along the curve. If not then adjust the controlpoints nearest to the curvature peaks or valleys. Try to distribute the points evenly along the curve
Action
Action
Modify the incremental distance. This is the distance a point is being moved if we press one of the cursor keys on the keyboard. If you look at the statusbar (see illustration 6) at the bottom of the main program window there's a panel saying Incr. Distance 0.100. Click on it with the mouse and a window shows up requesting the new distance. Set it to 0.01. Now each time we press a cursor key the selected controlpoint will be moved 0.01 meter.
Illustration 6: DELFTship statusbar
Action
Select one of the controlcurves. Select a point on the selected control curve. Start with the start and endpoints again. Move the selected point up or down with the cursor keys. Repeat this for all points until the curve coincides with the corresponding curve of the linesplan If you find that the incremental distance is still too large then reduce it. Repeat the process for the other two curves.
3)
4)
5)
Action
Select Mode => Shade from the popup menu in the perspective view. The hull surface will be shaded using virtual lights. Parts of the hull that are submerged are shaded in grey whilst the rest of the hull is shaded green. You can rotate the model by keeping the middle mouse button (or mousewheel) pressed while moving the mouse. If you have no middle mouse button you can use the scrollbars at the bottom and to the right of the perspective view.
Action
By now you should be able to modify the crease property of the two edges. If you're not sure just have another look at step 2. Select the two edges and make them knuckle lines again.
Action
Select the edge of the transom. Select Edit => Edge => Split from the mainmenu. A new point is inserted in the middle of the selected edge causing the edge to be split in two.
Action
Modify the coordinate by specifying the following values in the controlpoint window that shows the alpha numerical values of the controlpoint: X-coord : 0.1398 Y-coord : 0.0000: Z-coord : 1.1160
Action
In the previous step we've modified the values of the point manually in the controlpoint window. This window also has a checkbox that says Corner Make sure this checkbox is checked. Your transom will now look like the one on illustration 10.
Action
Open the layer dialog by selecting Edit => Layer => Dialog... from the mainmenu (or by pressing CTRL-L shortcut on the keyboard). After the layer windows shows up, modify the name of the current layer, which is layer 0 into Side panel. Now press the New layer button on the toolbar from the layer window. It's the leftmost button that displays the hint Create a new empty layer when you hover over it with the mouse. A new layer is created. Set the name of this layer to Bottom panel. Add another layer with the name Transom
Action
Click on one of the small green lines of the bottom. The face it belongs to will be selected and all the subdivided edges belonging to this face will be drawn in yellow indicating this face is selected. You can repeat this for all the faces in the bottom panel but there's another way to quickly select a group of faces. If you select a face while keeping the CTRL-key on your keyboard pressed the program assembles all faces that:
Belong to the same layer as the face you've just selected. Are connected to the selected face. The program stops if a knuckle line is encountered.
This is a convenient way to select the entire bottom or side panel in one pass. Note: The thin white lines that are drawn are called normals. They indicate the facing of the surface. For hydrostatic calculations it's crucial the front side of each face is on the side of the water. The normals should point outside the hull, not inside!
2)
Click on the arrow button to make all layers visible and click on the entry in the list that says Bottom panel. You've just assigned the selected faces to the bottom panel layer. Press the Esc-key or Selection => Deselect all from the mainmenu to clear the selection. Repeat this to assign the faces of the transom to the transom layer and the faces forming the side panel to the side panel layer.
10
Action
Select the bodyplan view. Make sure the display of interior edges is off (step 20). If you've added the stations at the right locations DELFTship will now draw them on the same location as the ones from the background image. They look very similar. If you look closely though you'll notice that the original stations at the stern are slightly curved at the side, while ours are straight.
11
Action
Select all the vertical edges of the side panel. Make sure you select them in chronological order because that will come in handy for the next step. Start with the edge on the centerline of the transom and work your way up to the front of the boat.
Action
Select Edit => Edge => Insert from the mainmenu. If you've selected the edges in the correct order in step 25 then all the points will be connected to each other with new edges as shown to the right. If the new edges do not run continuously from the transom to the stem (there's a gap) then simply select the two endpoints and repeat the process. Remember that in order to insert a new edge between two selected points the points must share the same face!
12
Action
Switch back to the bodyplan view. Make sure the control net is visible. Carefully move the new points a little outwards until the shape of the stations is the same as the original stations. The bow needs no adjustment so the displacement of the points should gradually reduce to zero while you work your way to the front. This is an iterative process, so keep adjusting the control points until you're satisfied with the shape of the stations.
Action
Select the three horizontal edges from the transom. Insert new points on these edges. If your not sure how to do this then have a look at step 26. Connect the new points by inserting new edges (see step 27). Your transom should look now like the one displayed to the right.
13
Action
Select the top edge of the transom (the one nearest to the centerplane). Make sure that the startpoint end endpoint have exactly the same Xcoordinate. If not, them adjust one of them manually. Do the same for the middle and lower edge as shown to the right. If the shape of the transom has changed significantly it might be necessary to repeat step 30 and 31 until the shape is satisfactory.
That's it! You've now successfully recreated a linesplan. If everything has been done correctly you should have ended up with a boat that should be very similar to the one shown below.
14