Académique Documents
Professionnel Documents
Culture Documents
CARVE EMBOSS
STAMP PUNCH
by Fredo6
1. Overview
VisuHole is a suite of interactive tools dedicated to holes and extrusions on planar and
curved surfaces. In the current version, VisuHole supports the following tools:
- DRILL THRU (with tubes) and PUNCH THRU (without Tubes). In addition, you can
create the hole with edges or with guide lines.
- CARVE and EMBOSS with a specified offset and a few options to control the
direction of extrusion.
- STAMP (no hole) and PUNCH (just the hole) and MARK (with Guide lines).
VisuHole can drill through one or several surfaces, including when embedded in
groups or components. The scope of the selection can be specified implicitly or by pre-
selection. A few additional options are available:
- Material assignment: you can choose or pick a material in the model for painting
the extrusions, tubes and stamped shapes
- Grouping, with 2 modes:
o GROUP IN for putting extrusions in groups in the selection context
o GROUP OUT for putting all extrusions and tubes in a master group,
without altering the original selection
- Follow Surface for Carve and Emboss on curved surfaces, allowing to respect the
shapes relative dimensions (versus Projection mode, where they would be
distorted)
2. Specifications
Sketchup Versions: 6 and above (Free, Make and Pro). Works better with v8 M2
and above.
Platforms: Windows XP, Vista, Win7, Win8 and Mac OSX all versions
IMPORTANT: VisuHole requires the Shared Library LibFredo6 v6.1 or
higher.
Language: English and French. Other languages may be provided by kind translators.
If you run SU8 and above, the recommended method is to auto-install VisuHole via
the SCF Plugin Store available for free on Sketchucation (you will need to register but it
is free). You can also download the RBZ file on this site for installation via the Extension
Manager of Sketchup.
For SU6 and SU7 users, you have to Unzip into the SU Plugins directory from a .zip file
(see details below)
All installations however will end up with the following footprint in the SketchUp
Plugins directory:
• one script file Fredo6_VisuHole.rb
• one subfolder Fredo6_VisuHole. This subfolder contains the library files, the
icons, cursor files, language files (please do not alter, rename or move files there).
Name Type
SU Plugins root directory Plugins Root Folder
Fredo6_VisuHole Folder
Fredo6_VisuHole.rb Ruby file
Fredo6_!LibFredo6 Folder
Fredo6_!LibFredo6.rb Ruby file
CAUTION: NEVER rename or move files from their folders. If you are unsure of
your unzip operation, do it in a neutral folder and check that you reconstruct the right
footprint. Then transfer the folders and files to the SU Plugins Directory.
Main menu:
By default in Tools > Fredo6 Collection > VisuHole. All functions are available in
this menu, whether shown or not in the toolbar.
Contextual menu
No contextual menu on selection
Toolbar
Toolbar name is Fredo6_VisuHole by default (you can change it to put the icon in an
existing toolbar). There is only one icon in the current version.
Error Handling
In some circumstances, VisuHole may be unable to perform the operation, either
because the geometry is too complex for computing intersections or simply because
there are still bugs in the script. If this happens, you may get an error message shown
as the dialog box below:
Although this is purely technical information related to the Ruby script, it can be
useful for the author in order to trace the cause of error. For instance, exporting as txt
file (or simply copy / paste) and posting on Sketchucation could be helpful.
1) Creating a Stencil
In the current version, Stencils must be picked in the model. To enter the Pick Stencil
mode, click on the button in the palette or press TAB.
The main buttons palette will disappear. When you move the mouse on faces and
components, a small axis system is displayed. The blue axis shows the direction for 2D
projection (on faces it is simply the face normal).
• Click on a Face or on a group / component to pick the stencil.
• Click and Drag to pick and orientate the X axis
NOTE: if the selection is a group or component, press CTRL to force picking the individual
face.
IMPORTANT: the point clicked becomes the origin of the Stencil. This is the Insertion
point used when you will later apply the stencil to drill or extrude a selection.
VisuHole keeps a history of created stencils within a Sketchup session. Note however that
in the current version of VisuHole, this history is NOT kept across Sketchup sessions.
Just click on the arrows to navigate thru the list of Stencils. The active stencil is
displayed below the buttons palette. The Insertion point is shown in red. The centroid of
each individual shapes is shown as a small dot in blue.
If the picked face is at top-level (i.e. not embedded in a group or component), then the
selection is taken as all connected faces. Note that by pressing CTRL, you can restrict the
selection to the picked face or picked surface.
If the picked face belongs to a group or component, then the selection depends on the
options selected in the button palette:
SINGLE: Only the picked RECURSE: the picked FROM TOP: all components
component / group is component / group and all / groups are selected from
selected its descendants are selected the top-most parent of the
selected face
The choice of options in reflected in the display: the resulting selection is highlighted in
thick lines.
Note: you can force the SINGLE option by pressing control, regardless of the status of the
buttons in the palette.
1) General procedure
Setting the direction of projection: by default it is the normal to the picked face. You
can however impose a direction, either an axis or a custom normal (as in MoveAlong or
DrawAlong). For custom direction, mouse over a face and either type ENTER or LONG-
CLICK. Once the Z-axis is set, the other axes in X and Y are computed by default.
You may also set the Material options and Group options (see details later in this chapter).
Once the operation is executed, you can either proceed with another operation or modify
the settings for the current operation. If you change any parameter in the buttons palette,
the button “APPLY CHANGE” will be enabled. When pressing this button, VisuHole will
undo the operation and redo it again with the new settings.
Note: if some shapes of the Stencil fall outside of the selection they would be ignored if
their centroid is outside any face.
By default the Drill tool will create Holes with tubes in the whole selection.
Default: Thru with tubes First Tube only Thru with NO Tube
First Tube only with no Tube Mark with Tubes Mark with NO tube
IMPORTANT: The Drill tool always operates Front-to-Back from the picked face,
whatever is the selection
You can Stamp, Punch or Mark. The shapes are printed on the front faces.
STAMP
The shapes are printed as faces on the selection.
Sholes in the stencils are left out.
PUNCH
Holes are created for the Stencil shapes
MARK
The contours of the stencil shapes are created with
Guide lines
The Offset (and other options) are common to these two forms of extrusion. You can type
the offset in the VCB or click on the palette button to set it. Both methods support formula
and optional units.
By default the direction for carving and embossing is calculated from the average
directions of the extruded faces in the selection (so not based on the normal of the
picked face). This is similar to Joint Push Pull Extrude method. The objective is to avoid
unrealistic distortions on curved surfaces.
Carve Emboss
By default the extrusion keeps a uniform depth (or height). Therefore the extruded faces
follow the curved surface. You may want however to flatten the extruded faces.
Flattened Flattened
By default the direction of extrusion is calculated for each individual shapes as the local
normal at the centroid of each individual shapes. You may however want to force the
direction normal to the picked face for ALL shapes. You can also combine this option
with the FLATTEN EXTRUDED FACES option.
VisuHole uses straight projection for each individual faces for all operations Drill, Stamp
and Carve / Emboss.
On curved surfaces, a straight projection is not necessarily adapted, especially when you
have several shapes. Only the shape close to the insertion point will not be too much
distorted but others will. Carve and Emboss attenuates this effect by using local normals,
but this is not perfect.
You can change this behavior and force a material with the dedicated buttons in the
palette, allowing you to navigate in the material list of the model or interactively pick
a material in the model.
By default, the generated geometry is created in the individual context of the selection and
therefore merged with the original geometry.
GROUP IN: with this option, the generated geometry is put into individual groups in the
individual context of the selection. The original selection is however changed (actually
just punched).
GROUP OUT: with this option, the generated geometry is created in a Master group at
the top level of the model. Each shape is put into individual groups within this master
group. The original selection is unchanged.
Curved surfaces present another issue (among others) related to the calculation of local
normals. If local normals are taken as the normal of the face hit by the centroid of each
individual shapes, then you may have an irregular spacing of the shapes. This is because
in Sketchup, there is no real ‘curved’ surface but a succession of flat faces.
By default, VisuHole handles this issue by computing a true smooth profile for the curved
surface when the curvature is ‘gentle’ (defined by a smoothness angle). By default the
angle is 25 degrees. You can however adjust it if you need in special situations by going
to the Default Parameters:
The behavior is controlled by a maximum angle of deviation which can be set in the
Default Parameters (default is 45 degrees):
Here is an illustration:
Cylinder shape is drawn (angle = 180°) Cylinder shape is NOT drawn (angle = 45°)
Here the deviation is 70° So smaller than the deviation of 70°