create a trivial case from the phone model
missing cutouts for ports and extrusions for buttons
This commit is contained in:
@@ -15,10 +15,15 @@ import sys
|
||||
|
||||
sys.path.append(os.path.join(os.getcwd(), "src"))
|
||||
|
||||
import case
|
||||
import pinephone
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def model():
|
||||
phone = pinephone.PinePhone()
|
||||
return case.case(phone)
|
||||
|
||||
def main():
|
||||
logging.basicConfig()
|
||||
logging.getLogger().setLevel(logging.INFO)
|
||||
@@ -28,14 +33,14 @@ def main():
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
model = pinephone.PinePhone()
|
||||
model_ = model()
|
||||
|
||||
if args.export_stl:
|
||||
logger.info("exporting stl to %s", args.export_stl)
|
||||
cq.exporters.export(model, args.export_stl)
|
||||
cq.exporters.export(model_, args.export_stl)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
else:
|
||||
result = pinephone.PinePhone()
|
||||
result = model()
|
||||
|
Reference in New Issue
Block a user