SurfaceSculptManipulator (object)

バージョン 1.12.0 で追加.

The SurfaceSculptManipulator is based on the SurfacePaintManipulator to provide a sculpt based painting example. The SurfaceSculptManipulator modifies the vertex positions on a mesh, pushing or pulling them in the direction of the paint brush ray.

Usage

  • Click and drag with the Left mouse button to push the surface vertices
  • Click and drag with the Right mouse button to pull the surface vertices
  • Click and drag with the Middle mouse button to smooth surface vertices
  • The mouse wheel can be used to resize the paint brush, except on platforms that do not support the mouse wheel.
  • The ‘Ctrl’ modifier key can be held during a mouse drag to resize the brush on these platforms.

SurfaceSculptManipulator SurfaceSculptManipulator SurfaceSculptManipulator SurfacePaintManipulator SurfacePaintManipulator SurfaceSculptManipulator->SurfacePaintManipulator ISurfacePaintManipulator ISurfacePaintManipulator SurfacePaintManipulator->ISurfacePaintManipulator Manipulator Manipulator SurfacePaintManipulator->Manipulator

Members

InlineInstance[] targetGeometries  
SurfacePaintManipulator_StrokePoint[] strokePath The stroke points making up the current paint stroke.
SurfacePaintManipulator_State state  
Scalar brushSize  
Scalar brushStrength  
Scalar brushScaleSpeed  
Scalar mouseDownBrushSize  
Vec2 mouseDownScreenPos  
InlineMaterial paintBrushMaterial  
InlineInstance paintBrush  
String portToDrive  
String hostName  
String graphName  
UInt32 evalID  
Scalar sculptStrength  
Boolean recomputePointNormals  
Integer paintMode  
SurfaceSculptCommand command  
EvalContext evalContext  

Methods

  SurfaceSculptManipulator ( in EvalContext evalContext )
  SurfaceSculptManipulator ( in SurfaceSculptManipulator other )
  SurfaceSculptManipulator ()
SurfaceSculptManipulator clone ? ()
  onPaint ! ( io MouseEvent mouseEvent, in SurfacePaintManipulator_PointCollection collectedPoints )
  onStrokeBegin ! ( io MouseEvent mouseEvent )
  onStrokeEnd ! ( io MouseEvent mouseEvent )
  setSculptStrength ! ( in Scalar sculptStrength )

Methods in detail

SurfaceSculptManipulator ( in EvalContext evalContext )

Constructor taking an EvalContext.

注釈

The EvalContext provides contextual information to the operator setting up the Manipulator. A Sculpt manipulator might need to force the Host DCC application to re-evaluate if the manipulator is modifying a geometry bound to a deformer. See SurfaceSculptManipulator.onPaint.


SurfaceSculptManipulator ( in SurfaceSculptManipulator other )

copy constructor


SurfaceSculptManipulator ()


SurfaceSculptManipulator SurfaceSculptManipulator.clone? ()

clone method


SurfaceSculptManipulator.onPaint! ( io MouseEvent mouseEvent, in SurfacePaintManipulator_PointCollection collectedPoints )

Called during the paint stroke for each mouse move event.


SurfaceSculptManipulator.onStrokeBegin! ( io MouseEvent mouseEvent )

Called when the stroke starts when the user presses down the mouse button Adds the generated SurfaceAttributePaintCommand command to the Host undo stack.


SurfaceSculptManipulator.onStrokeEnd! ( io MouseEvent mouseEvent )

Called when the stroke ends when the user releases the mouse button Adds the generated command to the Host undo stack.


SurfaceSculptManipulator.setSculptStrength! ( in Scalar sculptStrength )