Purpose

The module CSOBulgeProcessor allows for a deforming modification of any type of existing CSO.

Usage

Just attach this module at the processor input of a SoView2DCSOEditor.

Details

If clicked in the vicinity of an existing CSO, the CSO can locally be deformed while dragging the mouse. The amount of deformation depends on the module’s influence range, which is measured as a geodesic distance in screen coordinates (pixels) along the contour. Additionally, the influence range may be modified by an optional angle criterion. This is done by following the contour from the clicked point on until either the range limit is reached or until the contour yields a larger angle then is specified is reached.

Only the nearest contour is deformed.

The influenced path points are smoothly deformed using a cosine sigmoid function.

Windows

Default Panel

../../../Modules/Inventor/SoCSO/mhelp/Images/Screenshots/CSOBulgeProcessor._default.png

Output Fields

None.

outProcessorData

name: outProcessorData, type: CSOProcessorData(MLBase)

Connect this output to the processor input of a SoView2DCSOEditor.

Parameter Fields

Visible Fields

Is Processing

name: isProcessing, type: Bool, persistent: no

Shows whether the module is processing which is when the user interacts.

Influence Range (screen)

name: influenceRange, type: Integer, default: 64, minimum: 0

Sets the influence range in pixels along the contour.

Restrict to

name: restrictToCurvature, type: Bool, default: TRUE

If checked, the influence range is eventually further shortened by the contour’s curvature.

Angle

name: angleLimit, type: Float, default: 90

Sets a limit value in degrees that restricts the influence range.

Adapt while interacting

name: adaptInfluenceWhileInteracting, type: Bool, default: FALSE

If checked, the influence range is computed anew in each interaction step.

Adapt influence range by distance

name: adaptInfluenceByDistance, type: Bool, default: FALSE

If checked, the influence range is adapted by the distance of the hitpoint to the CSO, creating larger influence ranges when far away from the CSO.

Hidden Fields

updateMode

name: updateMode, type: Enum, default: AutoClear

Values:

Title Name
Off Off
Auto Update AutoUpdate
Auto Clear AutoClear

autoApply

name: autoApply, type: Bool, default: FALSE

apply

name: apply, type: Trigger

done

name: done, type: Trigger, persistent: no

emptyGroupBeforeGeneration

name: emptyGroupBeforeGeneration, type: Bool, default: FALSE

addCSOToGroupMode

name: addCSOToGroupMode, type: Enum, default: AddToGroupByLabel

Values:

Title Name
None AddToGroupNone
By Label AddToGroupByLabel
By Id AddToGroupById

addCSOToGroupWithId

name: addCSOToGroupWithId, type: Integer, default: -1

pathPointStyle

name: pathPointStyle, type: Enum, default: LineStyleSolid

Values:

Title Name
None LineStyleNone
Solid LineStyleSolid
Dashed LineStyleDashed
Dotted LineStyleDotted
Short Dashed LineStyleShortDashed

pathPointWidth

name: pathPointWidth, type: Float, default: 1

seedPointStyle

name: seedPointStyle, type: Enum, default: MarkerModeRect

Values:

Title Name
None MarkerModeNone
Rect MarkerModeRect
Circle MarkerModeCircle
Fixed Circle MarkerModeFixedCircle
Triangle MarkerModeTriangle
Filled Rect MarkerModeFilledRect
Filled Circle MarkerModeFilledCircle
Filled Triangle MarkerModeFilledTriangle
Dashed Rectangle MarkerModeDashedRectangle

seedPointSize

name: seedPointSize, type: Float, default: 2

seedPointColor

name: seedPointColor, type: Color, default: 0 1 0

seedPointAlpha

name: seedPointAlpha, type: Float, default: 1