create a trivial case from the phone model

missing cutouts for ports and extrusions for buttons
This commit is contained in:
2023-12-26 11:53:01 +00:00
parent 4c3600efea
commit aa57d262e2
3 changed files with 72 additions and 12 deletions

View File

@@ -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()