cadquery | A python parametric CAD scripting framework based on OCCT | 3D Printing library
kandi X-RAY | cadquery Summary
kandi X-RAY | cadquery Summary
CadQuery is an intuitive, easy-to-use Python module for building parametric 3D CAD models. Using CadQuery, you can write short, simple scripts that produce high quality CAD models. It is easy to make many different objects using a single script that can be customized.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Projection onto the plane
- Return the vector at the given location vector
- Project this vector onto a plane
- The value of the object
- Construct a spline
- Convert object to local coordinates
- Adds a pending edge to the context
- Transforms the vector
- Interpolate surfaces
- Export a workplane to a file
- Interpolate surface
- Solves the Assembly
- Split a solid
- Construct a spline from a list of vectors
- Solve the graph
- Make a box around each point
- Build the plot
- Revolve the mesh
- Extrude the extrude
- Creates a basic geometry
- Make a hole
- Make a circular hole
- Constructs a watertight polygon
- Mirror the plane
- Create a copy of the wire
- Extracts a linear spine from outer wires
cadquery Key Features
cadquery Examples and Code Snippets
Workplane.textOnPath(
txt: str,
fontsize: float,
distance: float,
start: float = 0.0,
cut: bool = True,
combine: bool = False,
clean: bool = True,
font: str = "Arial",
fontPath: Optional[str] = None,
kind: Lite
def assemble_chain_transmission(self,spkts:list[Union[cq.Solid, cq.Workplane]]) -> cq.Assembly:
"""
Create the transmission assembly from sprockets for a chain
Parameters
----------
spkts : list of cq.Solid or cq:Workplane
import cadquery as cq
from cq_warehouse.fastener import SocketHeadCapScrew
height = 60.0
width = 80.0
thickness = 10.0
diameter = 22.0
padding = 12.0
# make the screw
screw = SocketHeadCapScrew(fastener_type="iso4762", size="M2-0.4", length=16, sim
Community Discussions
Trending Discussions on cadquery
QUESTION
I am trying to build a docker image. This is the full dockerfile:
...ANSWER
Answered 2021-May-25 at 22:50I replicated this error with the continuumio/miniconda2:4.5.11
Docker image:
QUESTION
I downloaded a docker image for cadquery and jupyter notebook.
When i run the container, it gave me this message:
...ANSWER
Answered 2021-Feb-22 at 20:39The address 58bb309866f3:8888
is an internal container address in that cannot be reached from the host
You should connect using localhost and the port mapped in your docker run command. In this case you can connect using localhost:8888
QUESTION
I can loft a 2D shape from one plane to another like this:
...ANSWER
Answered 2020-Apr-19 at 09:16The point is to push back the last wire in the CQ stack, what a simple python assigment could not do:
wp = wp2
So I changed it to:
wp = wp.transformed(offset=cq.Vector(0, -0.5, 1.0),rotate=cq.Vector(10, 0, 0)).rect(1,2).workplane()
to make work the CQ kernel.
Here is the working code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cadquery
Using the CQ-editor GUI
From a Jupyter notebook
As a standalone library Linux installation video Windows installation video
For those unfamiliar (or uncomfortable) with Anaconda, it is probably best to install Miniconda to a local directory and to avoid running conda init. After performing a local directory installation, Miniconda can be activated via the [scripts,bin]/activate scripts. This will help avoid polluting and breaking the local Python installation. In Linux, the local directory installation method looks something like this:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page