Skip to content

medicationforall/cqportal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cqportal

Python library for making portal and container terrain.



Example Portal Code

import cadquery as cq
from cqportal.portal import Portal

bp_portal = Portal()
bp_portal.bp_frame.length = 150
bp_portal.bp_frame.width = 30
bp_portal.bp_frame.height = 150

bp_portal.render_base = False
bp_portal.render_ramps = True
bp_portal.ramp_push = 0
bp_portal.bp_ramp.width = 10

bp_portal.bp_hinge.rotate_deg = 0

bp_portal.make()


result_open = bp_portal.build()
#show_object(result_open)
cq.exporters.export(result_open, 'portal_open.stl')

Container



Example Container Code

import cadquery as cq
from cqportal.container import Container

bp_container = Container()
bp_container.bp_hinge.rotate_deg = -70

bp_container.make()

result = bp_container.build()
#show_object(result)
cq.exporters.export(result, 'container.stl')

Dependencies

Installation

To install cqportal directly from GitHub, run the following pip command:

pip install git+https://github.com/medicationforall/cqportal

OR

Local Installation

From the cloned cqdome directory run.

pip install ./