Miscelaneous content library for cqparts
Project description
Components
Primative Shapes
Primative shapes to build or test ideas quickly
Cube
Box
Sphere
Cylinder
Indicators
These components can be used in assemblies during development as a means to debug your part placement, and to demonstrate Mate coordinate systems.
Coordinate System Indicator
Planar Indicator
Examples
Use indicator on a primative
To illustrate how an inciator can be used to show where a Mate is on a Part, we’ll create a simple Assembly:
import cqparts from cqparts.constraint import Fixed, Coincident from cqparts_misc.basic.indicators import CoordSysIndicator from cqparts_misc.basic.primatives import Box class MyAsm(cqparts.Assembly): def make_components(self): return { 'box': Box(length=30, width=20, height=10), 'indicator': CoordSysIndicator(), } def make_constraints(self): return [ Fixed(self.components['box'].mate_origin), # fix at world origin Coincident( self.components['indicator'].mate_origin, self.components['box'].mate_neg_y, ), ] from cqparts.display import display display(MyAsm())
From this we can see that the mate_neg_y mate has:
its Z-axis along the world -Y-axis, and
its X-axis along the world Z-axis.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cqparts_misc-0.1.0.tar.gz
.
File metadata
- Download URL: cqparts_misc-0.1.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0a5e2c039884ea7a814c10b71f124909a99bc226de1bf0128769f35188ec6c |
|
MD5 | b71814d109340952ed069352144b08b9 |
|
BLAKE2b-256 | 3df596d6f650f55f40d0db32c6cfeaafdc6bb0d612ebe6a0b5dc1a59fb16da81 |
File details
Details for the file cqparts_misc-0.1.0-py2-none-any.whl
.
File metadata
- Download URL: cqparts_misc-0.1.0-py2-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61301d13cf72411823ccb1535856874eb216bbd967b0823494915d8c3673b8f1 |
|
MD5 | 7ac88a3580f449f1534eea4b7057da16 |
|
BLAKE2b-256 | 1b5cc9c1aa3f7db420c742491f746ef4b23e0b7854abbb6dcbb20deb721d2209 |