Skip to main content

Crate kittycad_modeling_cmds

Crate kittycad_modeling_cmds 

Source
Expand description

KittyCAD’s Modeling API lets you design 3D models.

§Beware

This project does not use semver. We are using 0.1.x for everything. If you use this crate, commit your Cargo.lock to avoid being broken when we publish a new version. Why? Because we use this primarily for KittyCAD server and clients, where we are on top of all changes.

Re-exports§

pub use ok_response::output;
pub use kcl_api;
pub use kcl_error;

Modules§

base64
Base64 data that encodes to standard padded base64, but can decode from multiple base64 implementations to account for various clients and libraries. Compatible with serde and JsonSchema.
coord
Various coordinate systems.
datetime
chrono wrapper for datetimes.
each_cmd
Definition of each modeling command.
exec_kcl
Types for executing KCL and getting response back.
format
Import and export types.
id
Modeling command IDs, used to associated requests and responses. Also used to construct commands which refer to previous commands.
impl_extern_type
A little macro for easy implementation of cxx::ExternType
kcl_project
Structure of KCL projects (one or more KCL files).
length_unit
A length unit is a type that converts a length value from one unit to another. In the case of the engine we will always convert to millimeters, since that is what the engine uses.
ok_response
When a modeling command is successful, these responses could be returned.
session
Controlling the rendering session.
shared
Types that are shared between various modeling commands, like Point3d.
units
Units of measurement.
websocket
Types for the WebSocket API. Types for the websocket server.

Macros§

impl_extern_type
This tells the c++ interop what the native c++ names are from https://docs.rs/cxx/latest/src/cxx/extern_type.rs.html

Structs§

AddHoleFromOffset
Add a hole to a closed path by offsetting it a uniform distance inward.
AddHoleFromOffsetBuilder
Use builder syntax to set the inputs and finish with build().
BeginExecution
Tell the engine you’re beginning execution, and will be sending many API calls shortly. The engine will render your geometry in reduced detail, to make execution faster. Call EndExecution to restore high quality once you’re done sending commands.
BeginExecutionBuilder
Use builder syntax to set the inputs and finish with build().
BooleanImprint
Create a new non-manifold body by intersecting all the input bodies, cutting and splitting all the faces at the intersection boundaries.
BooleanImprintBuilder
Use builder syntax to set the inputs and finish with build().
BooleanIntersection
Create a new solid from intersecting several other solids. In other words, the part of the input solids where they all overlap will be the output solid.
BooleanIntersectionBuilder
Use builder syntax to set the inputs and finish with build().
BooleanSubtract
Given a target solid, subtract a set of “tool solids” to create a new solid.
BooleanSubtractBuilder
Use builder syntax to set the inputs and finish with build().
BooleanUnion
Given a set of overlapping solids, create a new single solid.
BooleanUnionBuilder
Use builder syntax to set the inputs and finish with build().
BoundingBox
Get the smallest box that could contain the given parts.
BoundingBoxBuilder
Use builder syntax to set the inputs and finish with build().
CameraDragEnd
Camera drag ended
CameraDragEndBuilder
Use builder syntax to set the inputs and finish with build().
CameraDragMove
Camera drag continued.
CameraDragMoveBuilder
Use builder syntax to set the inputs and finish with build().
CameraDragStart
Camera drag started.
CameraDragStartBuilder
Use builder syntax to set the inputs and finish with build().
CenterOfMass
Get the center of mass of entities in the scene or the default scene.
CenterOfMassBuilder
Use builder syntax to set the inputs and finish with build().
ClosePath
Closes a path, converting it to a 2D solid.
ClosePathBuilder
Use builder syntax to set the inputs and finish with build().
ClosestEdge
Returns the closest edge to this point.
ClosestEdgeBuilder
Use builder syntax to set the inputs and finish with build().
CreatePlanarSurface
Create a planar surface bounded by the connection of various paths and curves. ‘CreatePlanarSurface’ modeling command.
CreatePlanarSurfaceBuilder
Use builder syntax to set the inputs and finish with build().
CreateRegion
Create a region bounded by the intersection of various paths. The region should have an ID taken from the ID of the ‘CreateRegion’ modeling command.
CreateRegionBuilder
Use builder syntax to set the inputs and finish with build().
CreateRegionFromQueryPoint
Create a region with a query point. The region should have an ID taken from the ID of the ‘CreateRegionFromQueryPoint’ modeling command.
CreateRegionFromQueryPointBuilder
Use builder syntax to set the inputs and finish with build().
CurveGetControlPoints
Get control points of the given curve.
CurveGetControlPointsBuilder
Use builder syntax to set the inputs and finish with build().
CurveGetEndPoints
Find the start and end of a curve.
CurveGetEndPointsBuilder
Use builder syntax to set the inputs and finish with build().
CurveGetType
Get type of the given curve.
CurveGetTypeBuilder
Use builder syntax to set the inputs and finish with build().
CurveSetConstraint
Get the plane for sketch mode.
CurveSetConstraintBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraCenterToScene
Updates the camera to center to the center of the current scene’s bounds
DefaultCameraCenterToSceneBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraCenterToSelection
Updates the camera to center to the center of the current selection (or the origin if nothing is selected)
DefaultCameraCenterToSelectionBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraFocusOn
Focus the default camera upon an object in the scene.
DefaultCameraFocusOnBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraGetSettings
Gets the default camera’s camera settings
DefaultCameraGetSettingsBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraGetView
Gets the default camera’s view state
DefaultCameraGetViewBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraLookAt
Change what the default camera is looking at.
DefaultCameraLookAtBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraPerspectiveSettings
Change what the default camera is looking at.
DefaultCameraPerspectiveSettingsBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraSetOrthographic
Use orthographic projection.
DefaultCameraSetOrthographicBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraSetPerspective
Use perspective projection.
DefaultCameraSetPerspectiveBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraSetView
Sets the default camera’s view state
DefaultCameraSetViewBuilder
Use builder syntax to set the inputs and finish with build().
DefaultCameraZoom
Adjust zoom of the default camera.
DefaultCameraZoomBuilder
Use builder syntax to set the inputs and finish with build().
Density
Get the density of entities in the scene or the default scene.
DensityBuilder
Use builder syntax to set the inputs and finish with build().
EdgeGetLength
What is the length of this edge?
EdgeGetLengthBuilder
Use builder syntax to set the inputs and finish with build().
EdgeLinesVisible
Changes visibility of scene-wide edge lines on brep solids
EdgeLinesVisibleBuilder
Use builder syntax to set the inputs and finish with build().
EnableSketchMode
Sketch on some entity (e.g. a plane, a face).
EnableSketchModeBuilder
Use builder syntax to set the inputs and finish with build().
EndExecution
Tell the engine you’re finished execution, and it should resume rendering at high resolution.
EndExecutionBuilder
Use builder syntax to set the inputs and finish with build().
EngineUtilEvaluatePath
Evaluates the position of a path in one shot (engine utility for kcl executor)
EngineUtilEvaluatePathBuilder
Use builder syntax to set the inputs and finish with build().
EntityCircularPattern
Create a circular pattern using this entity.
EntityCircularPatternBuilder
Use builder syntax to set the inputs and finish with build().
EntityClone
Create a pattern using this entity by specifying the transform for each desired repetition. Transformations are performed in the following order (first applied to last applied): scale, rotate, translate.
EntityCloneBuilder
Use builder syntax to set the inputs and finish with build().
EntityDeleteChildren
Attempts to delete children entity from an entity. Note that this API may change the body type of certain entities from Solid to Surface.
EntityDeleteChildrenBuilder
Use builder syntax to set the inputs and finish with build().
EntityFade
Fade entity in or out.
EntityFadeBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetAllChildUuids
What are all UUIDs of this entity’s children?
EntityGetAllChildUuidsBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetChildUuid
What is the UUID of this entity’s n-th child?
EntityGetChildUuidBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetDistance
What is the distance between these two entities?
EntityGetDistanceBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetIndex
What is this entity’s child index within its parent
EntityGetIndexBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetNumChildren
How many children does the entity have?
EntityGetNumChildrenBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetParentId
What is this entity’s parent?
EntityGetParentIdBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetPrimitiveIndex
What is this edge or face entity’s primitive index within its parent body’s edges or faces array respectively
EntityGetPrimitiveIndexBuilder
Use builder syntax to set the inputs and finish with build().
EntityGetSketchPaths
What are all UUIDs of all the paths sketched on top of this entity?
EntityGetSketchPathsBuilder
Use builder syntax to set the inputs and finish with build().
EntityLinearPattern
Create a linear pattern using this entity.
EntityLinearPatternBuilder
Use builder syntax to set the inputs and finish with build().
EntityLinearPatternTransform
Create a pattern using this entity by specifying the transform for each desired repetition. Transformations are performed in the following order (first applied to last applied): scale, rotate, translate.
EntityLinearPatternTransformBuilder
Use builder syntax to set the inputs and finish with build().
EntityMakeHelix
Create a helix using the input cylinder and other specified parameters.
EntityMakeHelixBuilder
Use builder syntax to set the inputs and finish with build().
EntityMakeHelixFromEdge
Create a helix using the specified parameters.
EntityMakeHelixFromEdgeBuilder
Use builder syntax to set the inputs and finish with build().
EntityMakeHelixFromParams
Create a helix using the specified parameters.
EntityMakeHelixFromParamsBuilder
Use builder syntax to set the inputs and finish with build().
EntityMirror
Mirror the input entities over the specified axis. Deprecated; please use EntityMirrorAcross
EntityMirrorAcross
Mirror the input entities over the specified axis, edge, or plane.
EntityMirrorAcrossBuilder
Use builder syntax to set the inputs and finish with build().
EntityMirrorAcrossEdge
Mirror the input entities over the specified edge. Deprecated; please use EntityMirrorAcross
EntityMirrorAcrossEdgeBuilder
Use builder syntax to set the inputs and finish with build().
EntityMirrorBuilder
Use builder syntax to set the inputs and finish with build().
EntitySetOpacity
Set opacity of the entity.
EntitySetOpacityBuilder
Use builder syntax to set the inputs and finish with build().
Export
Export the scene to a file.
Export2d
Export a sketch to a file.
Export2dBuilder
Use builder syntax to set the inputs and finish with build().
Export3d
Export the scene to a file.
Export3dBuilder
Use builder syntax to set the inputs and finish with build().
ExportBuilder
Use builder syntax to set the inputs and finish with build().
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.
ExtendPathBuilder
Use builder syntax to set the inputs and finish with build().
Extrude
Command for extruding a solid 2d.
ExtrudeBuilder
Use builder syntax to set the inputs and finish with build().
ExtrudeToReference
Command for extruding a solid 2d to a reference geometry.
ExtrudeToReferenceBuilder
Use builder syntax to set the inputs and finish with build().
FaceGetCenter
Obtains the surface “center of mass”
FaceGetCenterBuilder
Use builder syntax to set the inputs and finish with build().
FaceGetGradient
Determines the gradient (dFdu, dFdv) + normal vector on a brep face evaluated by parameters u,v
FaceGetGradientBuilder
Use builder syntax to set the inputs and finish with build().
FaceGetPosition
Determines a position on a brep face evaluated by parameters u,v
FaceGetPositionBuilder
Use builder syntax to set the inputs and finish with build().
FaceIsPlanar
Determines whether a brep face is planar and returns its surface-local planar axes if so
FaceIsPlanarBuilder
Use builder syntax to set the inputs and finish with build().
GetEntityType
What type of entity is this?
GetEntityTypeBuilder
Use builder syntax to set the inputs and finish with build().
GetNumObjects
Get the number of objects in the scene
GetNumObjectsBuilder
Use builder syntax to set the inputs and finish with build().
GetSketchModePlane
Get the plane for sketch mode.
GetSketchModePlaneBuilder
Use builder syntax to set the inputs and finish with build().
HandleMouseDragEnd
Stop dragging the mouse.
HandleMouseDragEndBuilder
Use builder syntax to set the inputs and finish with build().
HandleMouseDragMove
Continue dragging the mouse.
HandleMouseDragMoveBuilder
Use builder syntax to set the inputs and finish with build().
HandleMouseDragStart
Start dragging the mouse.
HandleMouseDragStartBuilder
Use builder syntax to set the inputs and finish with build().
HighlightSetEntities
Changes the current highlighted entity to these entities.
HighlightSetEntitiesBuilder
Use builder syntax to set the inputs and finish with build().
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.
HighlightSetEntityBuilder
Use builder syntax to set the inputs and finish with build().
ImportFile
File to import into the current scene.
ImportFileBuilder
Use builder syntax to set the inputs and finish with build().
ImportFiles
Import CAD files to the current scene.
ImportFilesBuilder
Use builder syntax to set the inputs and finish with build().
InvalidKclVersion
Error returned when user tries to use an invalid KCL version.
Loft
Command for lofting sections to create a solid
LoftBuilder
Use builder syntax to set the inputs and finish with build().
MakeAxesGizmo
Add a gizmo showing the axes.
MakeAxesGizmoBuilder
Use builder syntax to set the inputs and finish with build().
MakeOffsetPath
Make a new path by offsetting an object by a given distance. The new path’s ID will be the ID of this command.
MakeOffsetPathBuilder
Use builder syntax to set the inputs and finish with build().
MakePlane
Make a new plane
MakePlaneBuilder
Use builder syntax to set the inputs and finish with build().
Mass
Get the mass of entities in the scene or the default scene.
MassBuilder
Use builder syntax to set the inputs and finish with build().
MouseClick
Send a mouse click event Updates modified/selected entities.
MouseClickBuilder
Use builder syntax to set the inputs and finish with build().
MouseMove
Send a mouse move event
MouseMoveBuilder
Use builder syntax to set the inputs and finish with build().
MovePathPen
Move the path’s “pen”. If you’re in sketch mode, these coordinates are in the local coordinate system, not the world’s coordinate system. For example, say you’re sketching on the plane {x: (1,0,0), y: (0,1,0), origin: (0, 0, 50)}. In other words, the plane 50 units above the default XY plane. Then, moving the pen to (1, 1, 0) with this command uses local coordinates. So, it would move the pen to (1, 1, 50) in global coordinates.
MovePathPenBuilder
Use builder syntax to set the inputs and finish with build().
NewAnnotation
Create a new annotation
NewAnnotationBuilder
Use builder syntax to set the inputs and finish with build().
ObjectBringToFront
Bring an object to the front of the scene
ObjectBringToFrontBuilder
Use builder syntax to set the inputs and finish with build().
ObjectSetMaterialParamsPbr
Set the material properties of an object
ObjectSetMaterialParamsPbrBuilder
Use builder syntax to set the inputs and finish with build().
ObjectSetName
Set the name of an object
ObjectSetNameBuilder
Use builder syntax to set the inputs and finish with build().
ObjectVisible
Hide or show an object
ObjectVisibleBuilder
Use builder syntax to set the inputs and finish with build().
OffsetSurface
Offset a surface by a given distance.
OffsetSurfaceBuilder
Use builder syntax to set the inputs and finish with build().
OrientToFace
Looks along the normal of the specified face (if it is planar!), and fits the view to it.
OrientToFaceBuilder
Use builder syntax to set the inputs and finish with build().
PathGetCurveUuid
Obtain curve id by index
PathGetCurveUuidBuilder
Use builder syntax to set the inputs and finish with build().
PathGetCurveUuidsForVertices
Obtain curve ids for vertex ids
PathGetCurveUuidsForVerticesBuilder
Use builder syntax to set the inputs and finish with build().
PathGetInfo
Query the given path.
PathGetInfoBuilder
Use builder syntax to set the inputs and finish with build().
PathGetSketchTargetUuid
Obtain the sketch target id (if the path was drawn in sketchmode) for a path
PathGetSketchTargetUuidBuilder
Use builder syntax to set the inputs and finish with build().
PathGetVertexUuids
Obtain vertex ids for a path
PathGetVertexUuidsBuilder
Use builder syntax to set the inputs and finish with build().
PhysicalProperties
Get mass, density, volume, center of mass, surface area, and bounding box together. Equivalent to querying each property separately for the same entities, while allowing the engine to share the intermediate geometry used by the calculations.
PhysicalPropertiesBuilder
Use builder syntax to set the inputs and finish with build().
PlaneIntersectAndProject
Utility method. Performs both a ray cast and projection to plane-local coordinates. Returns the plane coordinates for the given window coordinates.
PlaneIntersectAndProjectBuilder
Use builder syntax to set the inputs and finish with build().
PlaneSetColor
Set the color of a plane.
PlaneSetColorBuilder
Use builder syntax to set the inputs and finish with build().
ProjectEntityToPlane
Project an entity on to a plane.
ProjectEntityToPlaneBuilder
Use builder syntax to set the inputs and finish with build().
ProjectPointsToPlane
Project a list of points on to a plane.
ProjectPointsToPlaneBuilder
Use builder syntax to set the inputs and finish with build().
QueryEntityType
Query the type of entity given its id. E.g. if a face is selected the face id is returned, if an edge/vertex is selected then the face ids that uniquely define the edge/vertex are returned (typically two).
QueryEntityTypeWithPoint
Query the type of entity that was selected. E.g. if a face is selected the face id is returned, if an edge/vertex is selected then the face ids that uniquely define the edge/vertex are returned (typically two).
ReconfigureStream
Reconfigure the stream.
ReconfigureStreamBuilder
Use builder syntax to set the inputs and finish with build().
RegionGetQueryPoint
Finds a suitable point inside the region for calling such that CreateRegionFromQueryPoint will generate an identical region.
RegionGetQueryPointBuilder
Use builder syntax to set the inputs and finish with build().
RegionGetResolvableIntersectionInfo
Finds a suitable set of arguments that can be passed to CreateRegion to resolve this very region.
RegionGetResolvableIntersectionInfoBuilder
Use builder syntax to set the inputs and finish with build().
RemoveSceneObjects
Remove scene objects.
RemoveSceneObjectsBuilder
Use builder syntax to set the inputs and finish with build().
Revolve
Command for revolving a solid 2d.
RevolveAboutEdge
Command for revolving a solid 2d about a brep edge
RevolveAboutEdgeBuilder
Use builder syntax to set the inputs and finish with build().
RevolveBuilder
Use builder syntax to set the inputs and finish with build().
SceneClearAll
Removes all of the Objects in the scene
SceneClearAllBuilder
Use builder syntax to set the inputs and finish with build().
SceneGetEntityIds
Get the ids of a given entity type.
SceneGetEntityIdsBuilder
Use builder syntax to set the inputs and finish with build().
SelectAdd
Adds one or more entities (by UUID) to the selection.
SelectAddBuilder
Use builder syntax to set the inputs and finish with build().
SelectClear
Clear the selection
SelectClearBuilder
Use builder syntax to set the inputs and finish with build().
SelectEntity
Set the selection to exactly these entities (replaces previous selection). Empty array clears the selection.
SelectEntityBuilder
Use builder syntax to set the inputs and finish with build().
SelectGet
Find all IDs of selected entities
SelectGetBuilder
Use builder syntax to set the inputs and finish with build().
SelectRegionFromPoint
The user clicked on a point in the window, returns the region the user clicked on, if any.
SelectRegionFromPointBuilder
Use builder syntax to set the inputs and finish with build().
SelectRemove
Removes one or more entities (by UUID) from the selection.
SelectRemoveBuilder
Use builder syntax to set the inputs and finish with build().
SelectReplace
Replaces current selection with these entities (by UUID).
SelectReplaceBuilder
Use builder syntax to set the inputs and finish with build().
SelectWithPoint
Modifies the selection by simulating a “mouse click” at the given x,y window coordinate Returns ID of whatever was selected.
SelectWithPointBuilder
Use builder syntax to set the inputs and finish with build().
SendObject
Send object to front or back.
SendObjectBuilder
Use builder syntax to set the inputs and finish with build().
SetBackgroundColor
Set the background color of the scene.
SetBackgroundColorBuilder
Use builder syntax to set the inputs and finish with build().
SetCurrentToolProperties
Set the properties of the tool lines for the scene.
SetCurrentToolPropertiesBuilder
Use builder syntax to set the inputs and finish with build().
SetDefaultSystemProperties
Set the default system properties used when a specific property isn’t set.
SetDefaultSystemPropertiesBuilder
Use builder syntax to set the inputs and finish with build().
SetGridAutoScale
Set the grid lines to auto scale. The grid will get larger the further you zoom out, and smaller the more you zoom in.
SetGridAutoScaleBuilder
Use builder syntax to set the inputs and finish with build().
SetGridReferencePlane
Align the grid with a plane or a planar face.
SetGridReferencePlaneBuilder
Use builder syntax to set the inputs and finish with build().
SetGridScale
Set the scale of the grid lines in the video feed.
SetGridScaleBuilder
Use builder syntax to set the inputs and finish with build().
SetKclVersion
Sets the KCL Version used by the engine.
SetKclVersionBuilder
Use builder syntax to set the inputs and finish with build().
SetObjectTransform
Set the transform of an object.
SetObjectTransformBuilder
Use builder syntax to set the inputs and finish with build().
SetOrderIndependentTransparency
Render transparent surfaces more accurately, but this might make rendering slower. Because it can interfere with runtime performance, it defaults to false.
SetOrderIndependentTransparencyBuilder
Use builder syntax to set the inputs and finish with build().
SetSceneUnits
Set the units of the scene. For all following commands, the units will be interpreted as the given units. Any previously executed commands will not be affected or have their units changed. They will remain in the units they were originally executed in. If not set, engine units default to mm.
SetSceneUnitsBuilder
Use builder syntax to set the inputs and finish with build().
SetSelectionFilter
What kind of entities can be selected?
SetSelectionFilterBuilder
Use builder syntax to set the inputs and finish with build().
SetSelectionType
When you select some entity with the current tool, what should happen to the entity?
SetSelectionTypeBuilder
Use builder syntax to set the inputs and finish with build().
SetTool
Set the current tool.
SetToolBuilder
Use builder syntax to set the inputs and finish with build().
SketchGetInfo
Gets debug information about a sketch
SketchGetInfoBuilder
Use builder syntax to set the inputs and finish with build().
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.
SketchModeDisableBuilder
Use builder syntax to set the inputs and finish with build().
Solid2dAddHole
Add a hole to a Solid2d object before extruding it.
Solid2dAddHoleBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dCutEdgeReferences
Cut the list of edge references with the given cut parameters
Solid3dCutEdgeReferencesBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dCutEdges
Cut the list of given edges with the given cut parameters.
Solid3dCutEdgesBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dFilletEdge
Fillets the given edge with the specified radius.
Solid3dFilletEdgeBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dFlip
Flips (reverses) a brep that is “inside-out”.
Solid3dFlipBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dFlipFace
Flips (reverses) a face. If the solid3d body type is “Solid”, then body type will become non-manifold (“Surface”).
Solid3dFlipFaceBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetAdjacencyInfo
Get a concise description of all of solids edges.
Solid3dGetAdjacencyInfoBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetAllEdgeFaces
Gets all faces which use the given edge.
Solid3dGetAllEdgeFacesBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetAllOppositeEdges
Gets all edges which are opposite the given edge, across all possible faces.
Solid3dGetAllOppositeEdgesBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetBodyType
Retrieves the body type.
Solid3dGetBodyTypeBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetCommonEdge
Gets the shared edge between these two faces if it exists
Solid3dGetCommonEdgeBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetEdgeUuid
What is the UUID of this body’s n-th edge?
Solid3dGetEdgeUuidBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetExtrusionFaceInfo
Get a concise description of all of an extrusion’s faces.
Solid3dGetExtrusionFaceInfoBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetFaceUuid
What is the UUID of this body’s n-th face?
Solid3dGetFaceUuidBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetNextAdjacentEdge
Gets the next adjacent edge for the given edge, along the given face.
Solid3dGetNextAdjacentEdgeBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetOppositeEdge
Gets the edge opposite the given edge, along the given face.
Solid3dGetOppositeEdgeBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dGetPrevAdjacentEdge
Gets the previous adjacent edge for the given edge, along the given face.
Solid3dGetPrevAdjacentEdgeBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dJoin
Command for joining a Surface (non-manifold) body back to a Solid. All of the surfaces should already be contained within the body mated topologically. This operation should be the final step after a sequence of Solid modeling commands such as BooleanImprint, EntityDeleteChildren, Solid3dFlipFace If successful, the new body type will become “Solid”.
Solid3dJoinBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dMultiJoin
Command for joining multiple Surfaces (non-manifold) to a Solid.
Solid3dMultiJoinBuilder
Use builder syntax to set the inputs and finish with build().
Solid3dShellFace
Command for shelling a solid3d face
Solid3dShellFaceBuilder
Use builder syntax to set the inputs and finish with build().
StartPath
Start a new path.
StartPathBuilder
Use builder syntax to set the inputs and finish with build().
SurfaceArea
Get the surface area of entities in the scene or the default scene.
SurfaceAreaBuilder
Use builder syntax to set the inputs and finish with build().
SurfaceBlend
Command for creating a blend between the edge of two given surfaces
SurfaceBlendBuilder
Use builder syntax to set the inputs and finish with build().
Sweep
Extrude the object along a path.
SweepBuilder
Use builder syntax to set the inputs and finish with build().
TakeSnapshot
Take a snapshot of the current view.
TakeSnapshotBuilder
Use builder syntax to set the inputs and finish with build().
ToggleGraphics
Enable or disable graphics. Warning: enabling graphics slows down the engine.
ToggleGraphicsBuilder
Use builder syntax to set the inputs and finish with build().
TwistExtrude
Command for twist extruding a solid 2d.
TwistExtrudeBuilder
Use builder syntax to set the inputs and finish with build().
UpdateAnnotation
Update an annotation
UpdateAnnotationBuilder
Use builder syntax to set the inputs and finish with build().
ViewIsometric
Fit the view to the scene with an isometric view.
ViewIsometricBuilder
Use builder syntax to set the inputs and finish with build().
Volume
Get the volume of entities in the scene or the default scene.
VolumeBuilder
Use builder syntax to set the inputs and finish with build().
ZoomToFit
Fit the view to the specified object(s).
ZoomToFitBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

ImageFormat
Enum containing the variety of image formats snapshots may be exported to.
KclVersion
Which KCL versions does Zoo support?
ModelingCmd
Commands that the KittyCAD engine can execute.
ModelingCmdEndpoint
Each modeling command (no parameters or fields).

Traits§

ModelingCmdOutput
Anything that can be a ModelingCmd output.
ModelingCmdVariant
Some modeling command executed on the KittyCAD engine.