Cqparts Misc 0.1.0 | Coderz Repository

cqparts-misc 0.1.0

Last updated:

0 purchases

cqparts-misc 0.1.0 Image
cqparts-misc 0.1.0 Images

Free

Languages

Categories

Add to Cart

Description:

cqpartsmisc 0.1.0

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.