Comments (2)
Note that I've specified radius
here such that it is divided by size
to get the actual model radii, with the model standardised at unit size and then scaled – which is what happens with every other mesh model. I feel that specifying the standardised radii would be really confusing for the user, e.g.:
!rbox size=100;100;50 radius=0.1;0.1;0
This would intuitively look like a tiny corner radius instead of the 10 unit radius it actually works out to be once the model is scaled, and even harder to make sense of if the side lengths don't match but a single radius is desired around the edges/corners.
Scaling the underlying models means that they can be more easily shared, since:
!rbox size=100
!rbox size=1000
can both use the same underlying model – though, arguably, this is rarely going to happen.
from flitter.
It also occurs to me now that:
@rbox size=2;1;1 radius=0.5
is a capsule!
from flitter.
Related Issues (20)
- Why aren't `Context` and `StateDict` part of the model?
- Windowed mode not working on macOS Sonoma (Apple Silicon) HOT 16
- OpenGL render bug on Apple Silicon HOT 16
- Forcing use of unsupported recursion causes kind of horrible errors expected of using recursion HOT 1
- Physics can easily leak state HOT 1
- It would be useful to have distinct camera support in `!canvas3d` HOT 4
- Rewrite `!physics` computation code as an OpenGL compute shader?
- Add unit/regression tests for language simplifier
- What if symbols became numbers instead of strings? HOT 3
- Add support for offscreen GL contexts HOT 2
- Add some basic functional testing HOT 4
- Functions and function calling needs a cleanup
- What if `Context` objects became the interface between the engine and rendering? HOT 1
- Should indexing wrap? HOT 4
- Flitter needs a Pygments syntax highlighter HOT 2
- It would be great if point lights could have a radius HOT 4
- Can I come up with a decent model of translucency? HOT 3
- Counters annoy me
- Either fix or pull simplification on state HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flitter.