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§
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§
- AddHole
From Offset - Add a hole to a closed path by offsetting it a uniform distance inward.
- AddHole
From Offset Builder - Use builder syntax to set the inputs and finish with
build(). - Begin
Execution - 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.
- Begin
Execution Builder - Use builder syntax to set the inputs and finish with
build(). - Boolean
Imprint - Create a new non-manifold body by intersecting all the input bodies, cutting and splitting all the faces at the intersection boundaries.
- Boolean
Imprint Builder - Use builder syntax to set the inputs and finish with
build(). - Boolean
Intersection - 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.
- Boolean
Intersection Builder - Use builder syntax to set the inputs and finish with
build(). - Boolean
Subtract - Given a target solid, subtract a set of “tool solids” to create a new solid.
- Boolean
Subtract Builder - Use builder syntax to set the inputs and finish with
build(). - Boolean
Union - Given a set of overlapping solids, create a new single solid.
- Boolean
Union Builder - Use builder syntax to set the inputs and finish with
build(). - Bounding
Box - Get the smallest box that could contain the given parts.
- Bounding
BoxBuilder - Use builder syntax to set the inputs and finish with
build(). - Camera
Drag End - Camera drag ended
- Camera
Drag EndBuilder - Use builder syntax to set the inputs and finish with
build(). - Camera
Drag Move - Camera drag continued.
- Camera
Drag Move Builder - Use builder syntax to set the inputs and finish with
build(). - Camera
Drag Start - Camera drag started.
- Camera
Drag Start Builder - Use builder syntax to set the inputs and finish with
build(). - Center
OfMass - Get the center of mass of entities in the scene or the default scene.
- Center
OfMass Builder - Use builder syntax to set the inputs and finish with
build(). - Close
Path - Closes a path, converting it to a 2D solid.
- Close
Path Builder - Use builder syntax to set the inputs and finish with
build(). - Closest
Edge - Returns the closest edge to this point.
- Closest
Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Create
Planar Surface - Create a planar surface bounded by the connection of various paths and curves. ‘CreatePlanarSurface’ modeling command.
- Create
Planar Surface Builder - Use builder syntax to set the inputs and finish with
build(). - Create
Region - 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.
- Create
Region Builder - Use builder syntax to set the inputs and finish with
build(). - Create
Region From Query Point - Create a region with a query point. The region should have an ID taken from the ID of the ‘CreateRegionFromQueryPoint’ modeling command.
- Create
Region From Query Point Builder - Use builder syntax to set the inputs and finish with
build(). - Curve
GetControl Points - Get control points of the given curve.
- Curve
GetControl Points Builder - Use builder syntax to set the inputs and finish with
build(). - Curve
GetEnd Points - Find the start and end of a curve.
- Curve
GetEnd Points Builder - Use builder syntax to set the inputs and finish with
build(). - Curve
GetType - Get type of the given curve.
- Curve
GetType Builder - Use builder syntax to set the inputs and finish with
build(). - Curve
SetConstraint - Get the plane for sketch mode.
- Curve
SetConstraint Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera Center ToScene - Updates the camera to center to the center of the current scene’s bounds
- Default
Camera Center ToScene Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera Center ToSelection - Updates the camera to center to the center of the current selection (or the origin if nothing is selected)
- Default
Camera Center ToSelection Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera Focus On - Focus the default camera upon an object in the scene.
- Default
Camera Focus OnBuilder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera GetSettings - Gets the default camera’s camera settings
- Default
Camera GetSettings Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera GetView - Gets the default camera’s view state
- Default
Camera GetView Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera Look At - Change what the default camera is looking at.
- Default
Camera Look AtBuilder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera Perspective Settings - Change what the default camera is looking at.
- Default
Camera Perspective Settings Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera SetOrthographic - Use orthographic projection.
- Default
Camera SetOrthographic Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera SetPerspective - Use perspective projection.
- Default
Camera SetPerspective Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera SetView - Sets the default camera’s view state
- Default
Camera SetView Builder - Use builder syntax to set the inputs and finish with
build(). - Default
Camera Zoom - Adjust zoom of the default camera.
- Default
Camera Zoom Builder - Use builder syntax to set the inputs and finish with
build(). - Density
- Get the density of entities in the scene or the default scene.
- Density
Builder - Use builder syntax to set the inputs and finish with
build(). - Edge
GetLength - What is the length of this edge?
- Edge
GetLength Builder - Use builder syntax to set the inputs and finish with
build(). - Edge
Lines Visible - Changes visibility of scene-wide edge lines on brep solids
- Edge
Lines Visible Builder - Use builder syntax to set the inputs and finish with
build(). - Enable
Sketch Mode - Sketch on some entity (e.g. a plane, a face).
- Enable
Sketch Mode Builder - 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.
- EndExecution
Builder - Use builder syntax to set the inputs and finish with
build(). - Engine
Util Evaluate Path - Evaluates the position of a path in one shot (engine utility for kcl executor)
- Engine
Util Evaluate Path Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Circular Pattern - Create a circular pattern using this entity.
- Entity
Circular Pattern Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Clone - 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.
- Entity
Clone Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Delete Children - Attempts to delete children entity from an entity. Note that this API may change the body type of certain entities from Solid to Surface.
- Entity
Delete Children Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Fade - Fade entity in or out.
- Entity
Fade Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetAll Child Uuids - What are all UUIDs of this entity’s children?
- Entity
GetAll Child Uuids Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetChild Uuid - What is the UUID of this entity’s n-th child?
- Entity
GetChild Uuid Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetDistance - What is the distance between these two entities?
- Entity
GetDistance Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetIndex - What is this entity’s child index within its parent
- Entity
GetIndex Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetNum Children - How many children does the entity have?
- Entity
GetNum Children Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetParent Id - What is this entity’s parent?
- Entity
GetParent IdBuilder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetPrimitive Index - What is this edge or face entity’s primitive index within its parent body’s edges or faces array respectively
- Entity
GetPrimitive Index Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
GetSketch Paths - What are all UUIDs of all the paths sketched on top of this entity?
- Entity
GetSketch Paths Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Linear Pattern - Create a linear pattern using this entity.
- Entity
Linear Pattern Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Linear Pattern Transform - 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.
- Entity
Linear Pattern Transform Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Make Helix - Create a helix using the input cylinder and other specified parameters.
- Entity
Make Helix Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Make Helix From Edge - Create a helix using the specified parameters.
- Entity
Make Helix From Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Make Helix From Params - Create a helix using the specified parameters.
- Entity
Make Helix From Params Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Mirror - Mirror the input entities over the specified axis.
Deprecated; please use
EntityMirrorAcross - Entity
Mirror Across - Mirror the input entities over the specified axis, edge, or plane.
- Entity
Mirror Across Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Mirror Across Edge - Mirror the input entities over the specified edge.
Deprecated; please use
EntityMirrorAcross - Entity
Mirror Across Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
Mirror Builder - Use builder syntax to set the inputs and finish with
build(). - Entity
SetOpacity - Set opacity of the entity.
- Entity
SetOpacity Builder - 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.
- Export2d
Builder - Use builder syntax to set the inputs and finish with
build(). - Export3d
- Export the scene to a file.
- Export3d
Builder - Use builder syntax to set the inputs and finish with
build(). - Export
Builder - Use builder syntax to set the inputs and finish with
build(). - Extend
Path - 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. - Extend
Path Builder - Use builder syntax to set the inputs and finish with
build(). - Extrude
- Command for extruding a solid 2d.
- Extrude
Builder - Use builder syntax to set the inputs and finish with
build(). - Extrude
ToReference - Command for extruding a solid 2d to a reference geometry.
- Extrude
ToReference Builder - Use builder syntax to set the inputs and finish with
build(). - Face
GetCenter - Obtains the surface “center of mass”
- Face
GetCenter Builder - Use builder syntax to set the inputs and finish with
build(). - Face
GetGradient - Determines the gradient (dFdu, dFdv) + normal vector on a brep face evaluated by parameters u,v
- Face
GetGradient Builder - Use builder syntax to set the inputs and finish with
build(). - Face
GetPosition - Determines a position on a brep face evaluated by parameters u,v
- Face
GetPosition Builder - Use builder syntax to set the inputs and finish with
build(). - Face
IsPlanar - Determines whether a brep face is planar and returns its surface-local planar axes if so
- Face
IsPlanar Builder - Use builder syntax to set the inputs and finish with
build(). - GetEntity
Type - What type of entity is this?
- GetEntity
Type Builder - Use builder syntax to set the inputs and finish with
build(). - GetNum
Objects - Get the number of objects in the scene
- GetNum
Objects Builder - Use builder syntax to set the inputs and finish with
build(). - GetSketch
Mode Plane - Get the plane for sketch mode.
- GetSketch
Mode Plane Builder - Use builder syntax to set the inputs and finish with
build(). - Handle
Mouse Drag End - Stop dragging the mouse.
- Handle
Mouse Drag EndBuilder - Use builder syntax to set the inputs and finish with
build(). - Handle
Mouse Drag Move - Continue dragging the mouse.
- Handle
Mouse Drag Move Builder - Use builder syntax to set the inputs and finish with
build(). - Handle
Mouse Drag Start - Start dragging the mouse.
- Handle
Mouse Drag Start Builder - Use builder syntax to set the inputs and finish with
build(). - Highlight
SetEntities - Changes the current highlighted entity to these entities.
- Highlight
SetEntities Builder - Use builder syntax to set the inputs and finish with
build(). - Highlight
SetEntity - 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.
- Highlight
SetEntity Builder - Use builder syntax to set the inputs and finish with
build(). - Import
File - File to import into the current scene.
- Import
File Builder - Use builder syntax to set the inputs and finish with
build(). - Import
Files - Import CAD files to the current scene.
- Import
Files Builder - Use builder syntax to set the inputs and finish with
build(). - Invalid
KclVersion - Error returned when user tries to use an invalid KCL version.
- Loft
- Command for lofting sections to create a solid
- Loft
Builder - Use builder syntax to set the inputs and finish with
build(). - Make
Axes Gizmo - Add a gizmo showing the axes.
- Make
Axes Gizmo Builder - Use builder syntax to set the inputs and finish with
build(). - Make
Offset Path - Make a new path by offsetting an object by a given distance. The new path’s ID will be the ID of this command.
- Make
Offset Path Builder - Use builder syntax to set the inputs and finish with
build(). - Make
Plane - Make a new plane
- Make
Plane Builder - Use builder syntax to set the inputs and finish with
build(). - Mass
- Get the mass of entities in the scene or the default scene.
- Mass
Builder - Use builder syntax to set the inputs and finish with
build(). - Mouse
Click - Send a mouse click event Updates modified/selected entities.
- Mouse
Click Builder - Use builder syntax to set the inputs and finish with
build(). - Mouse
Move - Send a mouse move event
- Mouse
Move Builder - Use builder syntax to set the inputs and finish with
build(). - Move
Path Pen - 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.
- Move
Path PenBuilder - Use builder syntax to set the inputs and finish with
build(). - NewAnnotation
- Create a new annotation
- NewAnnotation
Builder - Use builder syntax to set the inputs and finish with
build(). - Object
Bring ToFront - Bring an object to the front of the scene
- Object
Bring ToFront Builder - Use builder syntax to set the inputs and finish with
build(). - Object
SetMaterial Params Pbr - Set the material properties of an object
- Object
SetMaterial Params PbrBuilder - Use builder syntax to set the inputs and finish with
build(). - Object
SetName - Set the name of an object
- Object
SetName Builder - Use builder syntax to set the inputs and finish with
build(). - Object
Visible - Hide or show an object
- Object
Visible Builder - Use builder syntax to set the inputs and finish with
build(). - Offset
Surface - Offset a surface by a given distance.
- Offset
Surface Builder - Use builder syntax to set the inputs and finish with
build(). - Orient
ToFace - Looks along the normal of the specified face (if it is planar!), and fits the view to it.
- Orient
ToFace Builder - Use builder syntax to set the inputs and finish with
build(). - Path
GetCurve Uuid - Obtain curve id by index
- Path
GetCurve Uuid Builder - Use builder syntax to set the inputs and finish with
build(). - Path
GetCurve Uuids ForVertices - Obtain curve ids for vertex ids
- Path
GetCurve Uuids ForVertices Builder - Use builder syntax to set the inputs and finish with
build(). - Path
GetInfo - Query the given path.
- Path
GetInfo Builder - Use builder syntax to set the inputs and finish with
build(). - Path
GetSketch Target Uuid - Obtain the sketch target id (if the path was drawn in sketchmode) for a path
- Path
GetSketch Target Uuid Builder - Use builder syntax to set the inputs and finish with
build(). - Path
GetVertex Uuids - Obtain vertex ids for a path
- Path
GetVertex Uuids Builder - Use builder syntax to set the inputs and finish with
build(). - Physical
Properties - 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.
- Physical
Properties Builder - Use builder syntax to set the inputs and finish with
build(). - Plane
Intersect AndProject - Utility method. Performs both a ray cast and projection to plane-local coordinates. Returns the plane coordinates for the given window coordinates.
- Plane
Intersect AndProject Builder - Use builder syntax to set the inputs and finish with
build(). - Plane
SetColor - Set the color of a plane.
- Plane
SetColor Builder - Use builder syntax to set the inputs and finish with
build(). - Project
Entity ToPlane - Project an entity on to a plane.
- Project
Entity ToPlane Builder - Use builder syntax to set the inputs and finish with
build(). - Project
Points ToPlane - Project a list of points on to a plane.
- Project
Points ToPlane Builder - Use builder syntax to set the inputs and finish with
build(). - Query
Entity Type - 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).
- Query
Entity Type With Point - 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).
- Reconfigure
Stream - Reconfigure the stream.
- Reconfigure
Stream Builder - Use builder syntax to set the inputs and finish with
build(). - Region
GetQuery Point - Finds a suitable point inside the region for calling such that CreateRegionFromQueryPoint will generate an identical region.
- Region
GetQuery Point Builder - Use builder syntax to set the inputs and finish with
build(). - Region
GetResolvable Intersection Info - Finds a suitable set of arguments that can be passed to CreateRegion to resolve this very region.
- Region
GetResolvable Intersection Info Builder - Use builder syntax to set the inputs and finish with
build(). - Remove
Scene Objects - Remove scene objects.
- Remove
Scene Objects Builder - Use builder syntax to set the inputs and finish with
build(). - Revolve
- Command for revolving a solid 2d.
- Revolve
About Edge - Command for revolving a solid 2d about a brep edge
- Revolve
About Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Revolve
Builder - Use builder syntax to set the inputs and finish with
build(). - Scene
Clear All - Removes all of the Objects in the scene
- Scene
Clear AllBuilder - Use builder syntax to set the inputs and finish with
build(). - Scene
GetEntity Ids - Get the ids of a given entity type.
- Scene
GetEntity IdsBuilder - Use builder syntax to set the inputs and finish with
build(). - Select
Add - Adds one or more entities (by UUID) to the selection.
- Select
AddBuilder - Use builder syntax to set the inputs and finish with
build(). - Select
Clear - Clear the selection
- Select
Clear Builder - Use builder syntax to set the inputs and finish with
build(). - Select
Entity - Set the selection to exactly these entities (replaces previous selection). Empty array clears the selection.
- Select
Entity Builder - Use builder syntax to set the inputs and finish with
build(). - Select
Get - Find all IDs of selected entities
- Select
GetBuilder - Use builder syntax to set the inputs and finish with
build(). - Select
Region From Point - The user clicked on a point in the window, returns the region the user clicked on, if any.
- Select
Region From Point Builder - Use builder syntax to set the inputs and finish with
build(). - Select
Remove - Removes one or more entities (by UUID) from the selection.
- Select
Remove Builder - Use builder syntax to set the inputs and finish with
build(). - Select
Replace - Replaces current selection with these entities (by UUID).
- Select
Replace Builder - Use builder syntax to set the inputs and finish with
build(). - Select
With Point - Modifies the selection by simulating a “mouse click” at the given x,y window coordinate Returns ID of whatever was selected.
- Select
With Point Builder - Use builder syntax to set the inputs and finish with
build(). - Send
Object - Send object to front or back.
- Send
Object Builder - Use builder syntax to set the inputs and finish with
build(). - SetBackground
Color - Set the background color of the scene.
- SetBackground
Color Builder - Use builder syntax to set the inputs and finish with
build(). - SetCurrent
Tool Properties - Set the properties of the tool lines for the scene.
- SetCurrent
Tool Properties Builder - Use builder syntax to set the inputs and finish with
build(). - SetDefault
System Properties - Set the default system properties used when a specific property isn’t set.
- SetDefault
System Properties Builder - Use builder syntax to set the inputs and finish with
build(). - SetGrid
Auto Scale - Set the grid lines to auto scale. The grid will get larger the further you zoom out, and smaller the more you zoom in.
- SetGrid
Auto Scale Builder - Use builder syntax to set the inputs and finish with
build(). - SetGrid
Reference Plane - Align the grid with a plane or a planar face.
- SetGrid
Reference Plane Builder - Use builder syntax to set the inputs and finish with
build(). - SetGrid
Scale - Set the scale of the grid lines in the video feed.
- SetGrid
Scale Builder - Use builder syntax to set the inputs and finish with
build(). - SetKcl
Version - Sets the KCL Version used by the engine.
- SetKcl
Version Builder - Use builder syntax to set the inputs and finish with
build(). - SetObject
Transform - Set the transform of an object.
- SetObject
Transform Builder - Use builder syntax to set the inputs and finish with
build(). - SetOrder
Independent Transparency - Render transparent surfaces more accurately, but this might make rendering slower. Because it can interfere with runtime performance, it defaults to false.
- SetOrder
Independent Transparency Builder - Use builder syntax to set the inputs and finish with
build(). - SetScene
Units - 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.
- SetScene
Units Builder - Use builder syntax to set the inputs and finish with
build(). - SetSelection
Filter - What kind of entities can be selected?
- SetSelection
Filter Builder - Use builder syntax to set the inputs and finish with
build(). - SetSelection
Type - When you select some entity with the current tool, what should happen to the entity?
- SetSelection
Type Builder - Use builder syntax to set the inputs and finish with
build(). - SetTool
- Set the current tool.
- SetTool
Builder - Use builder syntax to set the inputs and finish with
build(). - Sketch
GetInfo - Gets debug information about a sketch
- Sketch
GetInfo Builder - Use builder syntax to set the inputs and finish with
build(). - Sketch
Mode Disable - 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.
- Sketch
Mode Disable Builder - Use builder syntax to set the inputs and finish with
build(). - Solid2d
AddHole - Add a hole to a Solid2d object before extruding it.
- Solid2d
AddHole Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
CutEdge References - Cut the list of edge references with the given cut parameters
- Solid3d
CutEdge References Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
CutEdges - Cut the list of given edges with the given cut parameters.
- Solid3d
CutEdges Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
Fillet Edge - Fillets the given edge with the specified radius.
- Solid3d
Fillet Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
Flip - Flips (reverses) a brep that is “inside-out”.
- Solid3d
Flip Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
Flip Face - Flips (reverses) a face. If the solid3d body type is “Solid”, then body type will become non-manifold (“Surface”).
- Solid3d
Flip Face Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetAdjacency Info - Get a concise description of all of solids edges.
- Solid3d
GetAdjacency Info Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetAll Edge Faces - Gets all faces which use the given edge.
- Solid3d
GetAll Edge Faces Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetAll Opposite Edges - Gets all edges which are opposite the given edge, across all possible faces.
- Solid3d
GetAll Opposite Edges Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetBody Type - Retrieves the body type.
- Solid3d
GetBody Type Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetCommon Edge - Gets the shared edge between these two faces if it exists
- Solid3d
GetCommon Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetEdge Uuid - What is the UUID of this body’s n-th edge?
- Solid3d
GetEdge Uuid Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetExtrusion Face Info - Get a concise description of all of an extrusion’s faces.
- Solid3d
GetExtrusion Face Info Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetFace Uuid - What is the UUID of this body’s n-th face?
- Solid3d
GetFace Uuid Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetNext Adjacent Edge - Gets the next adjacent edge for the given edge, along the given face.
- Solid3d
GetNext Adjacent Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetOpposite Edge - Gets the edge opposite the given edge, along the given face.
- Solid3d
GetOpposite Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
GetPrev Adjacent Edge - Gets the previous adjacent edge for the given edge, along the given face.
- Solid3d
GetPrev Adjacent Edge Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
Join - 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”.
- Solid3d
Join Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
Multi Join - Command for joining multiple Surfaces (non-manifold) to a Solid.
- Solid3d
Multi Join Builder - Use builder syntax to set the inputs and finish with
build(). - Solid3d
Shell Face - Command for shelling a solid3d face
- Solid3d
Shell Face Builder - Use builder syntax to set the inputs and finish with
build(). - Start
Path - Start a new path.
- Start
Path Builder - Use builder syntax to set the inputs and finish with
build(). - Surface
Area - Get the surface area of entities in the scene or the default scene.
- Surface
Area Builder - Use builder syntax to set the inputs and finish with
build(). - Surface
Blend - Command for creating a blend between the edge of two given surfaces
- Surface
Blend Builder - Use builder syntax to set the inputs and finish with
build(). - Sweep
- Extrude the object along a path.
- Sweep
Builder - Use builder syntax to set the inputs and finish with
build(). - Take
Snapshot - Take a snapshot of the current view.
- Take
Snapshot Builder - Use builder syntax to set the inputs and finish with
build(). - Toggle
Graphics - Enable or disable graphics. Warning: enabling graphics slows down the engine.
- Toggle
Graphics Builder - Use builder syntax to set the inputs and finish with
build(). - Twist
Extrude - Command for twist extruding a solid 2d.
- Twist
Extrude Builder - Use builder syntax to set the inputs and finish with
build(). - Update
Annotation - Update an annotation
- Update
Annotation Builder - Use builder syntax to set the inputs and finish with
build(). - View
Isometric - Fit the view to the scene with an isometric view.
- View
Isometric Builder - Use builder syntax to set the inputs and finish with
build(). - Volume
- Get the volume of entities in the scene or the default scene.
- Volume
Builder - Use builder syntax to set the inputs and finish with
build(). - Zoom
ToFit - Fit the view to the specified object(s).
- Zoom
ToFit Builder - Use builder syntax to set the inputs and finish with
build().
Enums§
- Image
Format - Enum containing the variety of image formats snapshots may be exported to.
- KclVersion
- Which KCL versions does Zoo support?
- Modeling
Cmd - Commands that the KittyCAD engine can execute.
- Modeling
CmdEndpoint - Each modeling command (no parameters or fields).
Traits§
- Modeling
CmdOutput - Anything that can be a ModelingCmd output.
- Modeling
CmdVariant - Some modeling command executed on the KittyCAD engine.