Passer au contenu principal

RhinoCapture.xml

RhinoCapture.xml contains all the settings of rhinoCapture STEREO: 3D cursor appearance, startup behavior, dynamic display, stereo view options, snaps, computation parameters, layers, and the behavior of each command. The RhinoCapture page of the Rhinoceros options exposes only some of them; everything else is set by editing this file with a plain text editor.

The file is self-documenting: each parameter is preceded by a comment describing its purpose and its allowed values. This appendix gives an overview; the file itself is the reference for details.

Location

The file is specific to each Windows user and to each Rhinoceros version:

C:\Users\<user>\RhinoTerrainSAS\<Rhino version>\RhinoCapture.xml

It is created automatically the first time the plugin is loaded, from the RhinoCapture.Default.xml template supplied in the Cfg folder of the installation. This template must not be modified: it serves as the reference for default values and for updating existing files.

⚠️ • If you used an earlier version of RhinoCapture, your settings were in %APPDATA%\RhinoTerrainSAS_<version>\RhinoCapture.xml.

• They are carried over automatically to the new location on first load; the old file is kept under the name RhinoCapture.xml.bak and is no longer used.

Automatic update

Each time it loads, RhinoCapture compares your file with the list of parameters it knows:

  • any missing parameter (introduced by a new version of the plugin) is added with its default value and its descriptive comment;
  • your existing values are never modified ;
  • parameters renamed from one version to the next are migrated, keeping your value.

You therefore lose no settings when you update RhinoCapture, even if you skip several versions. Parameters added by an update are placed at the end of their section, not where a new file would place them.

How to edit the file

The file is read when the plugin loads, that is, when Rhinoceros starts, and can be reloaded at any time with the CaptureSettingsReloadConfig command. To change a setting:

  • open RhinoCapture.xml in a text editor and change the desired value;
  • save, keeping the encoding UTF-8 ;
  • in Rhinoceros, run CaptureSettingsReloadConfig: the new settings are applied immediately (or restart Rhinoceros).
⚠️ • Reload before validating the RhinoCapture page of the Rhinoceros options. That page writes the settings held in memory back to the file; changes made in the editor and not yet reloaded would be overwritten.
⚠️ • A syntactically invalid file (unclosed tag, missing quote…) is rejected on reload — the current settings remain in effect — and, at startup, replaced by the default values. The command line message indicates the nature of the error. If in doubt, delete the file and restart Rhinoceros: it is recreated identical to the template. Remember to make a copy before any significant change!

Writing conventions

Value type

Form

Examples

Boolean

yes / no

<DrawPoints>yes</DrawPoints>

Color

three integers 0-255 separated by commas (red, green, blue)

255,191,191

Automatic color

Auto (some attributes only, see the comment)

BackgroundColor="Auto"

Number

decimal point

<TesselationDegrees>2.0</TesselationDegrees>

List

comma-separated names

<CursorLoop>DarkMode,LightMode</CursorLoop>

⚠️ • Tag and attribute names are case-sensitive.

File structure

<RhinoTerrainSAS>

<RhinoCapture version="1.1">

<Cursors> … 3D cursor appearance profiles

<Settings> … general settings, by family

<Commands> … comportement de chaque commande

</RhinoCapture>

</RhinoTerrainSAS>

The version attribute is managed by the plugin; do not modify it.

Cursors section — cursor profiles

This section defines one or more 3D cursor appearance profiles. Each profile is an element named after the profile (RhinoCpture, Rhinoceros, DarkMode, LightMode…) and containing the parameters below. You can modify the supplied profiles, and add new ones.

The profile active at startup is set by Settings/Application/Cursor; the CaptureSettingsCursorLoopAndApplyProfiles command lets you switch profiles while capturing.

Element

Attributes

Purpose

SizePixels

—

Size of the cursor cross, in pixels.

Thickness

—

Thickness of the axes, in pixels.

Axis

ColorX, ColorY, ColorZ

Color of each of the three axes.

Snap

Color

Color of the snap circle.

Snapped

CircleColor, CirclePattern, CircleThickness, LineColor, LineThickness, LinePattern

Appearance when a snap is active. Circle: color, pattern (Solid or Dash), thickness. Guide line to the snapped point: color, thickness, pattern (Solid or Dash).

Text

ShowZ, ShowSnapText, Height, Color, BackgroundColor, StrokeColor, BackgroundOpacity

Text accompanying the cursor (Z elevation and contextual information): display, height, colors. BackgroundColor and StrokeColor accept Auto (follows the color of the Z axis). BackgroundOpacity: background opacity in percent, 0 = transparent, 100 = opaque.

SnappedText

Color, BackgroundColor, StrokeColor, BackgroundOpacity

Text in snapped state. Auto here follows the CircleColor of Snapped. BackgroundOpacity: background opacity in percent.

Point

Color, StrokeColor, Diameter

Center point of the cursor: fill color, outline color, diameter in pixels (1 to 64).


Settings section — general settings

Application — startup and interface

Parameter

Default

Purpose

Cursor

RhinoCapture

Cursor profile applied at startup: RhinoCapture, Rhinoceros or a profile of section Cursors.

StartingAdaptation PMS3D · Summit

1

Fit the Rhino view to the stereo view at startup (0 / 1).

ShowConsoleOnLoadPlugIn

no

Show the diagnostic console when the plugin loads.

Template_ImgSize

128

Size in pixels of the thumbnails in the panel “Templates”.

Template_StartClic

2

Click that starts a capture from the panel “Templates”: 1 single click, 2 double click.

Template_LastTab

0

Tab of the “Templates” panel restored at startup (managed by the plugin).

TBAlwaysOnTop

no

Keep the RhinoCapture toolbars on top.

AdaptRHViewDuringACmd PMS3D · Summit

no

Fit the Rhino view to the stereo view while a command is running.

CursorLoop

(empty)

List of the profiles cycled through by CaptureSettingsCursorLoopAndApplyProfiles (reserved names allowed). Empty = all profiles.

DynamicDraw — dynamic display during capture

Parameter

Default

Purpose

DisplayMeasures

yes

Show measurements (lengths, angles) during dynamic drawing.

Color_Normal / Thickness_Normal

255,0,255 / 1

Color and thickness of the dynamic preview, normal state.

Color_Error / Thickness_Error

255,0,0 / 1

Same, error state (invalid geometry).

Color_Symmetry / Thickness_Symmetry

0,255,255 / 1

Same, for symmetry helpers.

Color_Construction / Thickness_Construction

251,197,0 / 1

Same, for construction helpers.

StereoView — rendering in the stereo view

Parameter

Default

Purpose

Clip

no

Reserved (no effect in this version).

DrawPoints

yes

Draw Rhino points in the stereo view.

DrawPointClouds

yes, Color="RGB"

Draw Rhino point clouds in the stereo view.

DrawCurves

yes

Draw Rhino curves in the stereo view.

TesselationDegrees

2.0

Angular step (degrees) used to discretize curves for stereo display. The smaller the value, the smoother the arcs, at the cost of display speed.

FillPolygons

no

Fill closed polygons.

LineThickness

2

Line thickness, in pixels.

PointSize

4.0

Point size, in pixels (0 = default value).

RhinoView

Parameter

Default

Purpose

ZoomFactor PMS3D · Summit

1.0

Zoom ratio between the stereo view and the Rhino view (can be changed with the command CaptureSettingsZoomFactor)

DisplayConstraint — constraint display

Parameter

Default

Purpose

DrawDirConstraint

yes

Draw the direction constraint.

DirConstraintColor / DirConstraintThickness

107,163,255 / 1

Color and thickness of the direction constraint.

DrawPlaneConstraintGrid

no

Draw the plane constraint as a grid.

DrawPlaneConstraintPolygon

no

Draw the polygon of the plane constraint.

PlaneConstraintColor / PlaneConstraintThickness

255,22,22 / 1

Color and thickness of the plane constraint.

DrawConstraintPoints

no

Draw constraint points.

ConstraintPointsColor

255,22,22

Color of constraint points.

DisplayHelpers — display helpers

Five Booleans, all set to no by default, which can be turned on together with CaptureDisplayHelpersToggle : DrawRhinoViewCenter, DrawRhinoViewCorners (cross at the center and marks at the corners of the Rhino view), DrawStereoViewCenter, DrawStereoViewCorners, DrawStereoViewFrame (same for the stereo view, plus its frame).

Snap — snaps and guide lines

Parameter

Default

Purpose

GuideLine_Factor

1000

Length factor applied when drawing a guide line.

GuideLine_LayerName

GuideLines

Name of the layer that receives guide lines.

GuideLine_LayerColor

255,191,191

Color of this layer.

SquaringConstraintValue

90.0

Angle (degrees) of the squaring constraint.

Computation — computation parameters

Parameter

Default

Purpose

TesselationDegrees

4.0

Angular step (degrees) used to discretize curves for computations (distinct from the display step).

UnweldAngleDegrees

2.0

Angle (degrees) beyond which mesh edges are unwelded.

MeshDensity

0.25

Density of the meshes produced by the roof commands (0 to 1).

DormersAdapt

no

Fit dormers to roof planes.

DormersAdaptShift

0.01

Offset (meters) applied during this fitting.

BuildingGroupColor

0,255,0

Color of “Building” groups.

CommandParameters — values specific to certain commands

Parameter

Default

Purpose

CaptureRoofBarrel_NbPolygons

8

Number of polygons of a barrel roof.

CaptureRoofPolyhedral_NbSides

8

Number of sides of a polyhedral roof.

CaptureRoofDomeByFootprintCurve_NbPoints

8

Number of points on the arcs of a dome per footprint curve.

Layers — working layers

Objects captured by rhinoCapture are created on a working layer, placed under a parent layer named, by default, RhinoCapture (parameter CaptureLayerName).

On a photogrammetric workstation, this parent layer acts as the root: only objects located in its sublayers are displayed in PMS3D or SummitEvolution, and hiding it hides everything its sublayers contain at once.

The working layer itself is defined either by a Shapefile-type feature class (parameter UseAFeatureClassFile = yes), or by the default name and color (parameter DefaultLayerName).

Parameter

Default

Purpose

CaptureLayerName / CaptureLayerColor PMS3D · Summit

RhinoCapture / 255,127,39

Name and color of the parent layer, always created. On a photogrammetric workstation it serves as the root: only objects in its sublayers are displayed, and hiding it hides all of its sublayers.

UseAFeatureClassFile PMS3D · Summit

yes

yes: the working layer is defined by the feature class described in FeatureClassFileName. no: it is created with DefaultLayerName / DefaultLayerColor.

FeatureClassFileName PMS3D · Summit

RhinoCapture_FC.ini

Name of the definition file of the feature class (Shapefile type) associated with the working layer. The file must be located in the C:\ProgramData\RhinoTerrainSAS_8. Read only if UseAFeatureClassFile is yes.

DefaultLayerName / DefaultLayerColor PMS3D · Summit

Captured / 0,0,255

Name and color of the working layer created under the parent layer when UseAFeatureClassFile is no, or when the FeatureClassFileName file cannot be found (a window then reports the problem).

⚠️ • On a photogrammetric workstation, hiding the RhinoCapture layer hides all captured objects, whatever their sublayers. If objects no longer appear in PMS3D or SummitEvolution, check the state of this layer first.

Commands section — command behavior

Each RhinoCapture command appears there as an element bearing its name, with three attributes:

Attribute

Purpose

ForceTopView

yes: the command forces a switch to top view before running.

AutoRepeat

yes: the command restarts automatically when it finishes, until canceled (Esc). This is the default setting for the drawing, roof and dormer commands, so you can chain captures without reaching for the mouse.

IsADrawCmd

yes: the command is a drawing command in the RhinoCapture sense (the objects it produces are placed on the capture layers and benefit from the dynamic drawing helpers).

Internal setting, do not modify.

The common use case is to disable auto-repeat for a command you only use occasionally:

<CaptureRoofDome ForceTopView="no" AutoRepeat="no" IsADrawCmd="yes"/>

⚠️ • Some commands listed in the file exist only in certain editions of RhinoCapture (for example CaptureConnect, CaptureDisconnect, CaptureMoveTo, CapturePMS3D…); their presence in the file has no effect in the other editions.