Skip to main content

Miscelaneous content library for cqparts

Project description


Primative Shapes

Primative shapes to build or test ideas quickly

  • Cube
  • Box
  • Sphere
  • Cylinder


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


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

from cqparts.display import display

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for cqparts-misc, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size cqparts_misc-0.1.0.tar.gz (16.4 kB) File type Source Python version None Upload date Hashes View
Filename, size cqparts_misc-0.1.0-py2-none-any.whl (19.2 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page