Description:

Constrains the picked point to lie on an arc.

Syntax:
public bool Constrain(
Arc arc
)
Parameters:
  • arc
  • Type: Arc
  • An arc to use as constraint.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a brep.

Syntax:
public bool Constrain(
Brep brep,
int wireDensity,
int faceIndex,
bool allowPickingPointOffObject
)
Parameters:
  • brep
  • Type: Brep
  • A brep to use as constraint.
  • wireDensity
  • Type: int
  • When wire_density<0, isocurve intersection snapping is turned off, when wire_density>=0, the value defines the isocurve density used for isocurve intersection snapping.
  • faceIndex
  • Type: int
  • When face_index <0, constrain to whole brep. When face_index >=0, constrain to individual face.
  • allowPickingPointOffObject
  • Type: bool
  • defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a circle.

Syntax:
public bool Constrain(
Circle circle
)
Parameters:
  • circle
  • Type: Circle
  • A circle to use as constraint.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a curve.

Syntax:
public bool Constrain(
Curve curve,
bool allowPickingPointOffObject
)
Parameters:
  • curve
  • Type: Curve
  • A curve to use as constraint.
  • allowPickingPointOffObject
  • Type: bool
  • defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a cylinder.

Syntax:
public bool Constrain(
Cylinder cylinder
)
Parameters:
  • cylinder
  • Type: Cylinder
  • A cylinder to use as constraint.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a line.

Syntax:
public bool Constrain(
Line line
)
Parameters:
  • line
  • Type: Line
  • A line to use as constraint.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a mesh.

Syntax:
public bool Constrain(
Mesh mesh,
bool allowPickingPointOffObject
)
Parameters:
  • mesh
  • Type: Mesh
  • A mesh to use as constraint.
  • allowPickingPointOffObject
  • Type: bool
  • defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

constrain the picked point to lie on a plane.

Syntax:
public bool Constrain(
Plane plane,
bool allowElevator
)
Parameters:
  • plane
  • Type: Plane
  • A plane to use as constraint.
  • allowElevator
  • Type: bool
  • True if elevator mode should be allowed at user request.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a line.

Syntax:
public bool Constrain(
Point3d from,
Point3d to
)
Parameters:
  • from
  • Type: Point3d
  • The start point of constraint.
  • to
  • Type: Point3d
  • The end point of constraint.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a sphere.

Syntax:
public bool Constrain(
Sphere sphere
)
Parameters:
  • sphere
  • Type: Sphere
  • A sphere to use as constraint.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Description:

Constrains the picked point to lie on a surface.

Syntax:
public bool Constrain(
Surface surface,
bool allowPickingPointOffObject
)
Parameters:
  • surface
  • Type: Surface
  • A surface to use as constraint.
  • allowPickingPointOffObject
  • Type: bool
  • defines whether the point pick is allowed to happen off object. When false, a "no no" cursor is shown when the cursor is not on the object. When true, a normal point picking cursor is used and the marker is visible also when the cursor is not on the object.
Returns:
Type: bool
True if constraint could be applied.
Available since:
5.0

Nothing found