-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExtrudeGeometry: Remove option "frames" #13587
Conversation
Agreed. Thanks! |
Rather than removing the feature, I think it would be better to add an example demonstrating it. What if you want to extrude a "winding yellow-brick road", and you want it to remain level so you can walk on it -- or a race track, and you want to control the embankment so you can drive on it. The parallel transport frames implementation (#1569) does not give you that kind of control. I recommend reverting this. |
Okay. We should definitely add a example. |
My long-term intention was to simplify Would it be okay for you to make the public methods |
I support anything you want to do to improve it. I just did not think removing the particular feature you removed was a good idea. The user does not have control over the first frame, so the 2D shape that is extruded can start out being rotated unexpectedly. But I can see how one could argue that the feature is too complicated... and proper modeling software is a better choice. |
There is another thing that bothers me. In my perfect world, we would remove all bevel related code from Unfortunately, the implementation of a generic |
That's great. Removing |
Should we revert the revert? 😁 |
I vote for yes 😁 |
Done! |
My current project is using I feel like the Is there a plan to replace this with equivalent functionality? Or to make OT: @WestLangley Could you share the source code for the road image you posted above? I think this would be very useful for me. Thanks |
@Mowsh three.js is not modeling software. You really should be using modeling software, I think. I have discovered it is very tedious specifying tangent frames; my examples above were just one-off hacks. As an alternative, if your conveyor is flat, can you create a flat shape (like a worm) and extrude the thickness, rather than extruding the length? |
Hmm three.js may not be intended to be a modeller's tool in general but it should be easy to build a modelling software could be built on top of three.js? eg. specifying tangent frames may be tedious but the frames can be generated by another tool in js. but removing this isn't all bad since we don't know how often this is used, and if someone requires this option for modelling for example, the Class could easily be copied and modified |
I'd like to suggest another simplification of
ExtrudeGeometry
: The removal ofoptions.frames
or the possibility to apply custom Frenet–Serret frames to the constructor.Analogous to
TubeGeometry
frames are now always calculated by the given curve via Curve.computeFrenetFrames.three.js/src/geometries/TubeGeometry.js
Line 74 in 0c6c005
option.frames
was never used in the examples so there is no need for modifications.