Subject:
|
Re: bend thingie creator.
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Fri, 24 Nov 2000 15:28:48 GMT
|
Viewed:
|
938 times
|
| |
| |
koen wrote:
>
> I'm very happy to get such a good reaction.
> Edgelines are coming later on because this requires some big changes, now i
> draw the axle and place cilinders over it, so edgelines would be crossing,
> this isn't good so I will have to change this method.
It's very cool indeed, I've been trying to do something like this for
LeoCAD but I'm using Hermite curves and the user is able to move the
control points and direction vectors interactively.
Everything works reasonably well but I'm having trouble getting the
"up" vector for each section. I have 3 equations for the curve: x =
f(t), y = g(t) and z = h(t), I use the first derivative to get the
direction and the second derivative to get the normal vector and use it
as the up vector.
The problem is that in some cases the normal vector is 0 but I'm using
it and the direction vector to create a transformation matrix and
calculate the vertexes of each section.
Would you comment on the method that you are using ?
Leonardo
|
|
Message has 1 Reply: | | Re: bend thingie creator.
|
| (...) I'm using a simplified form of bezier curves, like you see in most drawing software like coreldraw etc.. this is also x = f(t), y = g(t) and z = h(t) with f, g and h being a*t^3 + b*t^2 +c*t + d . a, b , c and d can than simply be calculated (...) (24 years ago, 26-Nov-00, to lugnet.cad.dev)
|
Message is in Reply To:
| | Re: bend thingie creator.
|
| I'm very happy to get such a good reaction. Edgelines are coming later on because this requires some big changes, now i draw the axle and place cilinders over it, so edgelines would be crossing, this isn't good so I will have to change this method. (...) (24 years ago, 22-Nov-00, to lugnet.cad.dev)
|
14 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|