coverage for all compas primitives#6
Conversation
Introduces functionality to visualize frames as 3D objects in the Notebook Viewer. - Adds a `frame_to_threejs` conversion utility for transforming frames into PyThreeJS objects. - Implements `ThreeFrameObject` for rendering frames in scenes, with axes visualized in red, green, and blue. - Updates the registration process to include frame objects in the Notebook Viewer. - Enhances the example notebook to demonstrate frame rendering capabilities. - Fixes a type annotation issue in `line_to_threejs` and improves the `draw` method's return type annotations for consistency. These changes enhance the visualization capabilities of the Notebook Viewer and improve type safety in the codebase.
`%pip install -q compas_notebook` is problematic when working in dev mode and conflicts with `pip install -e .`
…ives - converters use angular resolution for circles/ellipses - vector rendered as arrow with cone head - plane shown as grid - curve/surface discretization (requires nurbs plugin for creation)
spherical and cylindrical surfaces work without plugin
|
@tomvanmele this supercedes PR #4 let me close that one |
tomvanmele
left a comment
There was a problem hiding this comment.
generally looks good. just a few notes...
|
@jf--- the removal of the all block triggers the ruff linter, and you will have to add an entry in the changelog for the checks to pass :) |
|
thx for the review @tomvanmele really cool let me get back to you |
|
@tomvanmele seems in pretty good shape now |
|
it really encourages bugs, since its so misaligned with did I mention I dislike it 😈🧐😜 can I suggest in |
|
the as for the PR. how about that? |
Removed unused imports for various scene object types.
|
green amazing thx @tomvanmele |
|
@jf--- should i cut a new release? |
|
yeah why not that's a nice idea... |


Summary
%pip install -q compas_notebookcell conflicting with dev mode (pip install -e .)Changes