Emboss from Image Example 1

Introduction

This help topic explains how to create an Emboss from Image feature. The entire process is explained step-by-step. Some special tips are provided, after the main portion of the tutorial, that show you how to take advantage of some new BobART features. The process shows you how to remove an unwanted area of the Emboss from Image feature to create a component. Without the new features, this special case would not be possible.

 

This tutorial combines four examples. You learn how to create an Emboss from Image, how to Vectorize geometry (Black and White Strategy), how to use Smoothing, and how to Save As a Component/STL. You can use the In This Topic links at the top of this page to navigate to each section if you are not completing the entire tutorial.

Example File

The part file for this tutorial is available for download at: http://www.bobcad.com/helpfiles. If you are connected to the Internet, you can click the link provided to download and save the Emboss from Image Example 1 sldpt zip file. After downloading the zip file, extract the files on your system in a place that is easy to remember. After extracting the files, there are two images that you need to complete this tutorial.

 

The image needed for the Emboss from Image example, Dragon BAS.png, is shown next.

 

Example 1: Emboss from an Image

Part 1) Add the Feature and Define Stock

For this example, you can open the Emboss from Image Example 1.SLDPRT file, or you can start from a new file (as long as you have downloaded the two images). The first part of creating any emboss model is to define the stock, or the area in which emboss features are created.

 

For this example, you can open the Emboss from Image Example 1.sldprt file, or you can start from a new file.

 

  1. In the BobART tree, right-click Emboss Model, and click Emboss from Image.

  2. In the Open dialog box, navigate to the folder in which you saved the example files.

 

Tip: When locating an image file, it can be helpful to show all file types in the Open dialog box. This allows you to see all image files that are contained in each folder. To show all files: at the bottom of the Open dialog box, click the Files of Type arrow, and at the bottom of the list, select All Files.

 

Select Dragon BAS.png and click Open.

 

Note: When creating an emboss model, you must select a coordinate system to determine where the model is placed. For this example, we use the SolidWorks world coordinate system, so no selection is needed. Click .


The Stock Parameters dialog box is displayed.

In this example the stock is created with the same size as the image.

Tip: Notice that we added the emboss feature before creating stock. For the Emboss from Image feature, this is a special tip that allows you to easily set the stock size to the same size as the image. Notice the Model Size X and Y values are automatically set based on the image size. You can increase the Model Size values if you want to make the stock larger than the image file. (The stock size can also be modified after creating the feature.)

 

Note: The origin of the stock is the lower-left corner. You can type the coordinate values of a point in the OriginXYZ boxes to define where the stock origin is located in the graphics area. This example uses the default values of X0Y0Z0 to place the stock origin at the WCS or world coordinate system. The default model color is used because the stock and the image are the same size. In this situation, the color of the feature will cover (mask) the stock color.

 

  1. To close the dialog box and create the stock, click OK.

 

The Create Emboss from Image dialog box is displayed.

Part 2) Define the Feature Parameters

  1. For this example, the Origin values remain at X0Y0Z0.

    As with the stock, the image origin is the lower-left corner of the image.

    The Origin values define the position of the image in relation to the coordinate system you created the model on.

  2. In the Model Size group, notice that the X Size and Y Size values are automatically set based on the image size.

    The Z Depth uses a default value of 0.100.

    This defines the maximum height of the feature and it is not guaranteed to be exactly the specified value. (The information in the image defines the final result.

  3. Click in the Name box, and type My at the beginning of the description.

    When the feature is added to the BobART tree, it is labeled My Image Emboss 1.

  4. To select a color for the feature, click Color.

    In the Color dialog box, click the desired color, or define a custom color, and click OK.

  5. The Application Type, Add, is used for this example.

    This means that the emboss is added to the model or raised in the positive Z-axis direction.

  6. To create the feature using the defined values, click OK.

  7. Right-click Emboss Model, and click Regenerate.

 

The result is shown next.

 

 

In the previous image, the maximum height in Z is less than 0.100.

 

The default value of 0.100 is small for this example.

 

The next step is to modify the Z Depth.

Part 3) Edit the Feature and Regenerate the Model

  1. In the BobART tree, right-click My Image Emboss 1, and click Edit.

  2. In the Model Size group, set the Z Depth to 1.00.

  3. To accept the change, click OK.

    Notice the feature in the BobART tree. The Emboss Model icon and the My Image Emboss 1 icon are displayed with a red x. This shows that changes have been made that have not been added to the model. The model needs to be regenerated.

  4. To add the changes to the model, right-click Emboss Model, and click Regenerate.

 

Note: Every time that you modify the parameters or the geometry/image of an emboss feature, the results are not added to the model until you Regenerate to calculate the changes.

 

The maximum Z Depth of the feature is now 1.00.

 

Notice that the emboss is much more prominent than in the previous result.

 

 

The Emboss from Image example is complete.

 

In the next part of this tutorial, you learn how to Vectorize an image that is used to create the profile of the dragon. The geometry is then used to contain a Smoothing feature. This geometry is also used to create an emboss feature that contains all of the areas around the dragon. After creating the second feature, the dragon can then be saved as a component that only contains the dragon, not the entire emboss from image feature.

Example 2: Vectorize - 2 Color (Black and White) Strategy

Part 1) Vectorize an Image - 2 Color (Black and White) Strategy

For this part of the tutorial, a black and white image of the dragon is loaded into the system and vectorized to create geometry that is used later.

 

  1. To hide the current embossed model, right-click Emboss Model, and click Blank/Unblank.

  2. In the BobART tree, right-click Images, and click Load Image.

Important: The Selection Manager displays for you to select the image location and orientation. We want the vectorization result to be created on a 2D sketch so we select the Front plane. (If you do not make a selection, the Front plane is still used, but the vectorization result uses a 3D sketch.) Expand the Feature Manager design tree, and select the Front plane. Click .

 

  1. In the Open dialog box, locate and select Dragon Black and White.png, and click Open.

 

Tip: When locating an image file, it can be helpful to show all file types in the Open dialog box. This allows you to see all image files that are contained in each folder. To show all files: at the bottom of the Open dialog box, click the Files of Type arrow, and at the bottom of the list, select All Files.

 

The image is loaded into the graphics area with the image origin (the lower-left corner) placed at the WCS or world coordinate system origin. Note that an Image feature is added to the BobART tree under Images. (If you want to change the default location, right-click Image-image name, and click Change Origin.) A SolidWorks sketch feature is also added to the Feature Manager design tree that contains the sketch picture.

 

 

  1. Under Images, right-click Image-Dragon Black and White, and click Vectorize.

    The Raster to Vector dialog box is displayed.

  2. In the Vectorize Strategy group, select 2-Level (Black/White) Strategy.

    The Threshold Value is set to 2. (For this example, no changes are made to the default settings.)

  3. To vectorize the image using the defined parameters, click OK.

    BobCAM automatically creates a sketch feature in the Feature Manager design tree to contain the resulting geometry.


  4. To hide the image and view the geometry, right-click Image-Dragon Black and White, and click Blank/Unblank.

 

 

This concludes the vectorization example. The geometry that you created is used in the next three parts.

Example 3: Using Smoothing

Part 1) How to Use Smoothing

When you zoom-in to view the model up close, you can see that the result of embossing the height-map image has left a texture/grainy appearance on the model. This appearance may or may not be desired. For this example, we use smoothing to remove this from the model surface. The areas of the model that we want to improve are shown next.

 

 

  1. Right-click Emboss Model, and click Smoothing.

  2. In the Boundary Based Smoothing dialog box, leave the default settings, and click OK.

Zoom in, if needed, right-click any entity of the dragon profile that is not a point, and click Select Chain in the context menu.

 

 

Repeat this process for the following chain.

 

 

In the BobART tree, under Smoothing 2, right-click Geometry, and click Re/Select.

The selected geometry is added to the geometry list.


To confirm the selection, click OK.

 

Note: When using a Smoothing feature, by default, the smoothing is applied to the entire model. (You do not have to select geometry.) When you select geometry to contain the smoothing feature, it is only applied within the selected boundaries.

 

 

To show the embossed model again, right-click Emboss Model, and click Blank/Unblank.

  1. To update the model, right-click Emboss Model, and click Regenerate.

    The result is shown next.



    You can see that the surface of the model has been improved, but it can still be improved further.

  2. In the BobART tree, right-click Smoothing, and click Edit.

    In the Smoothing Parameters group, change the Smoothing Window Size to 0.100.

    This increases the amount of smoothing applied.

  3. Click OK and Regenerate the model, as done previously.

 

The result is shown next.

 

 

The surface of the model has been greatly improved and the smoothing is now complete. This concludes the Smoothing portion of this tutorial.

Part 2) Create an Offset

In the next part of this tutorial, you create an Emboss Regular feature. The geometry that was created from the boundary of the image is the same size as the model/feature. Because they are the exact same size, you offset the geometry to assure that no artifacts are created at the edge of the model.

 

  1. In the Feature Manager design tree, right-click Sketch1, and click (Edit Sketch).

    Right-click Emboss Model, and click Blank/Unblank.

  2. Right-click the any line of the rectangle, and click Select Chain.

  3. On the Sketch tab, click Offset Entities, and change the Offset Distance in the Property Manager to 0.500.



    The CAD preview shows the offset outside of the rectangle.





    Click to create the offset.



    To cancel the Offset function, click .

  4. Right-click one of the lines making up the inner rectangle and select Select Chain.



  5. With the inner rectangle selected, click Delete.

 

  1. Click Exit Sketch to finish the changes.

 

Now the boundary that is used to create the Emboss Regular feature is larger than the model.

 

This assures that the Emboss Regular feature covers all unwanted areas of the model.

Part 3) Create a Regular Emboss

For this part of the tutorial, a regular emboss feature is created that contains all of the unwanted areas of the Emboss from Image feature. This allows us to save only the area of the dragon as a component/stl.

 

  1. In the BobART Manager, right-click Emboss Model, and click Emboss Regular.

  2. In the Emboss dialog box, click Color.

    Select a new color for the feature, and click OK.

    In the Emboss dialog box, click OK. (The parameters for this feature are not important, so the default values are used.)

  3. Under Regular Emboss 3 - Add, right-click Geometry, and click Re/Select.

  4. Select the Sketch1 feature from the Feature Manager design tree.



  5. To confirm the selection, click OK.

  6. To add the changes to the model, right-click Emboss Model, and click Regenerate.

  7. Right-click Emboss Model, and click Blank/Unblank.

 

 

The model now contains two emboss features, the original Emboss from Image and the Regular Emboss that was added to surround the dragon emboss. When you save an individual emboss as a component, only the area defined by the selected feature is saved. Because the Regular Emboss covers all of the area around the dragon, it is not included when saving the Emboss from Image as a component/.stl file.

Part 4) Changing the Model Resolution

When the stock is created for emboss features, the Resolution is automatically set based on the size of the stock. You can increase the Resolution some to help improve the model appearance. You may otherwise want to lower the resolution to achieve a different appearance or to conserve system resources during the creation process.

 

Tip: The Resolution parameter that is found in the Stock Parameters dialog box is the DPI, or dots per inch, of the model. When increasing the resolution, you must remain within reasonable limits to avoid running out of system resources. Larger resolutions require more processing power and may not be beneficial in the end result when machining the model. The level of detail in the model only needs to match the level of detail with which it is machined.

 

  1. In the BobART tree, right-click Emboss Model, and click Create/Modify Stock.

  2. In the Stock Parameters dialog box, notice the value in the Resolution box.

    For this example, the resolution is currently 72.

    Just to see how the resolution is updated, in the Model Size group, change the X value to 20.00, and press Tab.

    The resolution is updated based on the model size.

    (Change the X value back to 18.2361.)

  3. In the Resolution box, type 125.

  4. To close the dialog box, click OK.

  5. To update the model, right-click Emboss Model, and click Regenerate.

 

(Calculation times increase when the resolution is increased.)

 

The increased resolution for this example actually starts to cause a grainy appearance to return, which was removed earlier by the Smoothing feature. (Increasing the Resolution creates a more detailed model. In this case, the increase does not improve the appearance of the model.)

 

Before saving the component in the next part, change the Resolution back to 72, and Regenerate the model (as explained in Steps 1-5).

Example 4: Creating a Component (Individual Feature)

Part 1) Create a Component (Save As Component/STL)

The BobART module now includes the ability to save individual emboss features (or the entire model) as a component. Saving as a component means that the feature (or model) is saved as an .stl file. The component can then be used to create an Emboss from Component feature. The following steps are used to create a component from a single feature.

 

  1. In the BobART tree, right-click the top level item of the feature.

    For this example, right-click My Image Emboss 1, and click Save as Component/STL.

  2. In the STL Save Option dialog box, click OK. The default tolerance value is used.

 

Tip: You can decrease the tolerance (make the value smaller) to create a more accurate model if necessary. However, decreasing the tolerance increases the size of the saved file, and it may not actually be necessary (meaning that it doesn't improve the machining of the part). The default tolerance is a good starting point. You can increase the tolerance (for example, to 0.001) to create a smaller file size without significant degradation to the model. You should experiment until you find the best result for your parts.

 

  1. In the Save As dialog box, select the folder in which you would like to save the component.

  2. In the File Name box, type the name of the component.

    For this example, type MyDragon Component.

  3. To save the file, click Save.

 

The result of the component is shown next. (The component was opened in a new file to show the result.)

 

 

The component is finished. This concludes the How to Create a Component portion of this tutorial.

 

The component is used in the How to Create an Emboss from Component tutorial.

 

To learn how to save the entire model as a component, view How to Save Whole Emboss As Component/STL.

Important Information

This section explains why the process used in this example was necessary to create the dragon component from the Emboss from Image feature (using only a specific area of the feature).

 

It is important to understand why the process used in this tutorial was applied to remove the areas around the dragon. The BobART module now includes the ability to remove the non-embossed areas of an embossed model. This option, Remove Non-Emboss Area, is found in the Stock Parameters dialog box. This option can remove excess stock (that is larger than the Emboss from Image feature), however, it does not have an effect on the Emboss from Image feature itself, because the entire area of the image is a part of the emboss.

 

Another feature in BobART is the ability to create components using the entire model (Save Whole Emboss As Component/STL) or individual emboss features (Save as Component/STL). The Save as Component/STL option saves only the area defined by the selected feature. Any additional emboss contained within the same area is not included in the component. This is the reason that the Regular Emboss was added to the embossed model. The Regular Emboss feature covered all of the undesired areas around the dragon. When the Emboss from Image feature is saved as a component/.stl file, none of the areas contained in the regular emboss are included in the component.

Related Topics

How to Create an Emboss from Component

How to Save Whole Emboss As Component/STL

BobART Overview