#[non_exhaustive]
pub enum ModelingCmdEndpoint {
Show 97 variants StartPath, MovePathPen, ExtendPath, Extrude, Revolve, RevolveAboutEdge, ClosePath, CameraDragStart, CameraDragMove, CameraDragEnd, DefaultCameraGetSettings, DefaultCameraLookAt, DefaultCameraPerspectiveSettings, DefaultCameraZoom, Export, EntityGetParentId, EntityGetNumChildren, EntityGetChildUuid, EntityGetAllChildUuids, EntityGetDistance, EntityLinearPattern, EntityCircularPattern, EntityMakeHelix, EntityMirror, EditModeEnter, SelectWithPoint, SelectAdd, SelectRemove, SceneClearAll, SelectReplace, HighlightSetEntity, HighlightSetEntities, NewAnnotation, UpdateAnnotation, EdgeLinesVisible, ObjectVisible, ObjectBringToFront, ObjectSetMaterialParamsPbr, GetEntityType, Solid3dGetAllEdgeFaces, Solid2dAddHole, Solid3dGetAllOppositeEdges, Solid3dGetOppositeEdge, Solid3dGetNextAdjacentEdge, Solid3dGetPrevAdjacentEdge, Solid3dFilletEdge, FaceIsPlanar, FaceGetPosition, FaceGetGradient, SendObject, EntitySetOpacity, EntityFade, MakePlane, PlaneSetColor, SetTool, MouseMove, MouseClick, SketchModeDisable, GetSketchModePlane, CurveSetConstraint, EnableSketchMode, SetBackgroundColor, SetCurrentToolProperties, SetDefaultSystemProperties, CurveGetType, CurveGetControlPoints, TakeSnapshot, MakeAxesGizmo, PathGetInfo, PathGetCurveUuidsForVertices, PathGetVertexUuids, HandleMouseDragStart, HandleMouseDragMove, HandleMouseDragEnd, RemoveSceneObjects, PlaneIntersectAndProject, CurveGetEndPoints, ReconfigureStream, ImportFiles, SetSceneUnits, Mass, Density, Volume, CenterOfMass, SurfaceArea, DefaultCameraFocusOn, SetSelectionType, SetSelectionFilter, DefaultCameraSetOrthographic, DefaultCameraSetPerspective, ZoomToFit, ViewIsometric, Solid3dGetExtrusionFaceInfo, EditModeExit, SelectClear, SelectGet, GetNumObjects,
}
Expand description

Each modeling command (no parameters or fields).

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

StartPath

Start a new path.

§

MovePathPen

Move the path’s “pen”.

§

ExtendPath

Extend a path by adding a new segment which starts at the path’s “pen”. If no “pen” location has been set before (via MovePen), then the pen is at the origin.

§

Extrude

Command for extruding a solid 2d.

§

Revolve

Command for revolving a solid 2d.

§

RevolveAboutEdge

Command for revolving a solid 2d about a brep edge

§

ClosePath

Closes a path, converting it to a 2D solid.

§

CameraDragStart

Camera drag started.

§

CameraDragMove

Camera drag continued.

§

CameraDragEnd

Camera drag ended

§

DefaultCameraGetSettings

Gets the default camera’s camera settings

§

DefaultCameraLookAt

Change what the default camera is looking at.

§

DefaultCameraPerspectiveSettings

Change what the default camera is looking at.

§

DefaultCameraZoom

Adjust zoom of the default camera.

§

Export

Export the scene to a file.

§

EntityGetParentId

What is this entity’s parent?

§

EntityGetNumChildren

How many children does the entity have?

§

EntityGetChildUuid

What is the UUID of this entity’s n-th child?

§

EntityGetAllChildUuids

What are all UUIDs of this entity’s children?

§

EntityGetDistance

What is the distance between these two entities?

§

EntityLinearPattern

Create a linear pattern using this entity.

§

EntityCircularPattern

Create a circular pattern using this entity.

§

EntityMakeHelix

Create a helix using the input cylinder and other specified parameters.

§

EntityMirror

Mirror the input entities over the specified axis. (Currently only supports sketches)

§

EditModeEnter

Enter edit mode

§

SelectWithPoint

Modifies the selection by simulating a “mouse click” at the given x,y window coordinate Returns ID of whatever was selected.

§

SelectAdd

Adds one or more entities (by UUID) to the selection.

§

SelectRemove

Removes one or more entities (by UUID) from the selection.

§

SceneClearAll

Removes all of the Objects in the scene

§

SelectReplace

Replaces current selection with these entities (by UUID).

§

HighlightSetEntity

Changes the current highlighted entity to whichever one is at the given window coordinate. If there’s no entity at this location, clears the highlight.

§

HighlightSetEntities

Changes the current highlighted entity to these entities.

§

NewAnnotation

Create a new annotation

§

UpdateAnnotation

Update an annotation

§

EdgeLinesVisible

Changes visibility of scene-wide edge lines on brep solids

§

ObjectVisible

Hide or show an object

§

ObjectBringToFront

Bring an object to the front of the scene

§

ObjectSetMaterialParamsPbr

Set the material properties of an object

§

GetEntityType

What type of entity is this?

§

Solid3dGetAllEdgeFaces

Gets all faces which use the given edge.

§

Solid2dAddHole

Add a hole to a Solid2d object before extruding it.

§

Solid3dGetAllOppositeEdges

Gets all edges which are opposite the given edge, across all possible faces.

§

Solid3dGetOppositeEdge

Gets the edge opposite the given edge, along the given face.

§

Solid3dGetNextAdjacentEdge

Gets the next adjacent edge for the given edge, along the given face.

§

Solid3dGetPrevAdjacentEdge

Gets the previous adjacent edge for the given edge, along the given face.

§

Solid3dFilletEdge

Fillets the given edge with the specified radius.

§

FaceIsPlanar

Determines whether a brep face is planar and returns its surface-local planar axes if so

§

FaceGetPosition

Determines a position on a brep face evaluated by parameters u,v

§

FaceGetGradient

Determines the gradient (dFdu, dFdv) + normal vector on a brep face evaluated by parameters u,v

§

SendObject

Send object to front or back.

§

EntitySetOpacity

Set opacity of the entity.

§

EntityFade

Fade entity in or out.

§

MakePlane

Make a new plane

§

PlaneSetColor

Set the color of a plane.

§

SetTool

Set the current tool.

§

MouseMove

Send a mouse move event

§

MouseClick

Send a mouse click event Updates modified/selected entities.

§

SketchModeDisable

Disable sketch mode. If you are sketching on a face, be sure to not disable sketch mode until you have extruded. Otherwise, your object will not be fused with the face.

§

GetSketchModePlane

Get the plane for sketch mode.

§

CurveSetConstraint

Get the plane for sketch mode.

§

EnableSketchMode

Sketch on some entity (e.g. a plane, a face).

§

SetBackgroundColor

Set the background color of the scene.

§

SetCurrentToolProperties

Set the properties of the tool lines for the scene.

§

SetDefaultSystemProperties

Set the default system properties used when a specific property isn’t set.

§

CurveGetType

Get type of the given curve.

§

CurveGetControlPoints

Get control points of the given curve.

§

TakeSnapshot

Take a snapshot of the current view.

§

MakeAxesGizmo

Add a gizmo showing the axes.

§

PathGetInfo

Query the given path.

§

PathGetCurveUuidsForVertices

Obtain curve ids for vertex ids

§

PathGetVertexUuids

Obtain vertex ids for a path

§

HandleMouseDragStart

Start dragging the mouse.

§

HandleMouseDragMove

Continue dragging the mouse.

§

HandleMouseDragEnd

Stop dragging the mouse.

§

RemoveSceneObjects

Remove scene objects.

§

PlaneIntersectAndProject

Utility method. Performs both a ray cast and projection to plane-local coordinates. Returns the plane coordinates for the given window coordinates.

§

CurveGetEndPoints

Find the start and end of a curve.

§

ReconfigureStream

Reconfigure the stream.

§

ImportFiles

Import files to the current model.

§

SetSceneUnits

Set the units of the scene. For all following commands, the units will be interpreted as the given units.

§

Mass

Get the mass of entities in the scene or the default scene.

§

Density

Get the density of entities in the scene or the default scene.

§

Volume

Get the volume of entities in the scene or the default scene.

§

CenterOfMass

Get the center of mass of entities in the scene or the default scene.

§

SurfaceArea

Get the surface area of entities in the scene or the default scene.

§

DefaultCameraFocusOn

Focus the default camera upon an object in the scene.

§

SetSelectionType

When you select some entity with the current tool, what should happen to the entity?

§

SetSelectionFilter

What kind of entities can be selected?

§

DefaultCameraSetOrthographic

Use orthographic projection.

§

DefaultCameraSetPerspective

Use perspective projection.

§

ZoomToFit

Fit the view to the specified object(s).

§

ViewIsometric

Fit the view to the scene with an isometric view.

§

Solid3dGetExtrusionFaceInfo

Get a concise description of all of an extrusion’s faces.

§

EditModeExit

Exit edit mode

§

SelectClear

Clear the selection

§

SelectGet

Find all IDs of selected entities

§

GetNumObjects

Get the number of objects in the scene

Trait Implementations§

source§

impl Clone for ModelingCmdEndpoint

source§

fn clone(&self) -> ModelingCmdEndpoint

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ModelingCmdEndpoint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ModelingCmdEndpoint

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for ModelingCmdEndpoint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ModelingCmd> for ModelingCmdEndpoint

You can easily convert each modeling command with its fields, into a modeling command without fields.

source§

fn from(v: ModelingCmd) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ModelingCmdEndpoint

source§

fn eq(&self, other: &ModelingCmdEndpoint) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ModelingCmdEndpoint

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ModelingCmdEndpoint

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoResult<T> for T

§

type Err = Infallible

source§

fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>

source§

impl<T> IntoSql for T

source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression

Convert &self to an expression for Diesel’s query builder. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToSmolStr for T
where T: Display + ?Sized,

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,