Yeicor
e0503983f1
Ability to explode models and minor improvements
2025-08-04 17:47:22 +02:00
Yeicor
c877fef490
Minor fixes and drag and drop models onto interface
2025-07-26 17:01:42 +02:00
Yeicor
a63d018850
playground: most of the logic for both frontend and backend is implemented, some bugs remain
2025-07-20 21:35:45 +02:00
Yeicor
10ed5e2e9e
Minor backend improvements: better color and textured handling, smooth shading, better demo
2025-07-19 12:43:05 +02:00
Andy Ross
c14a823dc1
Update visual defaults
...
Somewhat more conventional visual presentation:
+ Use a neutral gray background a-la most other CAD/modelling software
for better contrast with the geometry (which defaults to a bright
yellow). This is done with the "skybox-environment" image in
model-viewer, so add a new setting value in settings.ts for this (it
can be overriden in the URL just like other settings)
+ But using a skybox will cause that image to be used for lighting
too, which is clearly not desired. So fetch a nice professional
HDRI image from Polyhaven for lighting. This is much better (more
directional, higher contrast) than the default light environment
anyway.
+ The checkerboard texture isn't really a good default. Use a 1x1
white pixel instead, essentially presenting the model materials
unchanged.
Also collect the default color in gltf.py out of the code and put it
next to the texture for clarity. This should probably be wired
through to a setting at some point.
Signed-off-by: Andy Ross <andy@plausible.org >
2025-07-15 15:24:09 -07:00
Andy Ross
9ec2de8e4a
Don't add location-like objects to Compound()
...
The stack scan likes to look at iterables like lists for objects, but
unlike the way it treats local variables, it tries to put them in a
Compound() object. That doesn't work for elements like build123d
Location/Pos/Rot which aren't shapes. Just skip them in those
contexts.
2025-07-11 09:03:35 -07:00
Andy Ross
7f43367459
Clean up object naming
...
Honor the upstream names for objects if they've been given them, use
the automatic variable magic as a fallback. And in the case of truly
anonymous objects, give them a name based on their type (e.g. "Box3")
vs. "_unknown_var99".
2025-07-02 09:27:13 -07:00
Yeicor
b629f07f5e
Fix broken gltf exports and minor cleanup
2025-04-20 12:47:23 +02:00
renovate[bot]
5f6b6d7ba0
Update dependency build123d to >=0.9,<0.10 ( #231 )
...
* Update dependency build123d to >=0.9,<0.10
* Update pyproject.toml
* Small fix and updates
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Yeicor <4929005+Yeicor@users.noreply.github.com >
2025-02-16 13:06:21 +01:00
Yeicor
4343c52466
Automatically configure default preload URL if the backend serves the frontend directly.
...
Fixes #207
2024-11-15 23:10:30 +01:00
Yeicor
09525daae8
Minor improvements to custom textures feature
2024-11-09 18:25:38 +01:00
Yeicor
874f9e8d6e
Minor improvements to custom textures feature
2024-11-09 18:25:38 +01:00
Chaser Huang
822672c288
Some more missing imports
2024-11-09 18:25:38 +01:00
Chaser Huang
383586c5a4
Add missing imports due to rebase
2024-11-09 18:25:38 +01:00
Chaser Huang
b4d557534d
Add statement lost in rebasing
2024-11-09 18:25:38 +01:00
Chaser Huang
e6921144fb
fix: type hint typo
2024-11-09 18:25:38 +01:00
Chaser Huang
f95509f4f4
Add setting base texture through environment variables
2024-11-09 18:25:38 +01:00
Chaser Huang
5a0228d4fc
Support selecting base texture
2024-11-09 18:25:38 +01:00
Yeicor
09c0994a34
Also color edges and vertices, add examples and minor improvements
2024-10-11 20:18:49 +02:00
Chaser Huang
0939e25da2
fix: typo
2024-10-11 20:18:49 +02:00
Chaser Huang
712e0a06e6
support bd cad objects with color tagged
2024-10-11 20:18:49 +02:00
Charles Cazabon
b9c3b34416
Add py.typed marker so linting tools know to use the type annotations.
2024-09-25 11:48:16 +02:00
Yeicor
eca2bbfa7c
Fix python import bug
2024-03-30 17:28:49 +01:00
Yeicor
86180c424e
Keep selected enabled features on model updates instead of resetting them, better list of objects support and recover/disable previous selection on scene reloads.
2024-03-30 17:26:06 +01:00
Yeicor
255ae72ed2
Count features again after changes to model and support for sending arbitrary lists of shapes as a single model.
2024-03-29 12:23:16 +01:00
Yeicor
4b06559ab8
Add a progress bar to the frontend and improve slightly batched updates logic
2024-03-28 22:52:34 +01:00
Yeicor
13bbdd5956
Fix automatic _find_var_name
2024-03-28 12:51:26 +01:00
Yeicor
7166f9fe3d
Improved image location after build123d update
2024-03-28 12:20:56 +01:00
Yeicor
7a7627f57e
clean code
2024-03-26 22:02:32 +01:00
Yeicor
eed0baccac
fix automatic naming of objects
2024-03-26 21:25:28 +01:00
Yeicor
72480d82c8
strong performance optimizations for the backend
2024-03-26 21:22:48 +01:00
Yeicor
8ebf48cb36
configurable edge and vertex widths
2024-03-26 20:43:21 +01:00
Yeicor
632e7e93c6
lots of performance improvements, bug fixes and some new features
2024-03-25 21:37:28 +01:00
Yeicor
1d01c75448
more fixes
2024-03-16 16:22:08 +01:00
Yeicor
981d923e5e
fix
2024-03-16 10:56:46 +01:00
Yeicor
e85dc36fea
clean frontend disconnection protocol
2024-03-16 10:54:26 +01:00
Yeicor
d5cdd094e8
reduce idle cpu usage and add todo
2024-03-14 17:26:54 +01:00
Yeicor
8fc5ed7544
fix for export_all
2024-03-10 19:46:20 +01:00
Yeicor
431c41a615
fix CI deployment 12
2024-03-10 18:56:45 +01:00
Yeicor
49df7af970
add support for programmatically and efficiently removing objects, better API and more CI automation
2024-03-10 17:30:34 +01:00
Yeicor
77ceeb2eba
fix logo export
2024-03-10 15:38:56 +01:00
Yeicor
719395863d
big rewrite focusing on faster performance and selection improvements
2024-03-10 15:34:39 +01:00
Yeicor
a9ce189c45
faster updates
2024-03-09 12:59:07 +01:00
Yeicor
f1b04db24a
small improvement for export
2024-03-09 12:05:40 +01:00
Yeicor
768603b4d3
increase default request timeout
2024-03-07 20:56:51 +01:00
Yeicor
3e3730a4a5
faster multi-object load, faster updates and better orthographic camera at different scales
2024-03-07 20:49:27 +01:00
Yeicor
753648e522
fix imports
2024-03-06 19:25:49 +01:00
Yeicor
8749c708e2
quick fixes 4
2024-03-05 21:08:24 +01:00
Yeicor
1cbd1987b3
fully working example and many fixes
2024-03-05 20:58:14 +01:00
Yeicor
4bd025e7d5
fix launching backend without a built frontend
2024-03-03 20:41:44 +01:00