POV-Ray : Newsgroups : povray.general : Hanging wires/ropes/tubes : Re: Hanging wires/ropes/tubes Server Time
30 Jul 2024 00:20:44 EDT (-0400)
  Re: Hanging wires/ropes/tubes  
From: Alain
Date: 11 Feb 2010 23:15:11
Message: <4b74d5cf$1@news.povray.org>

> let's say I have a tube attached to a wall and to a machine.
>
> I have the endpoints, say
>
> #declare tube_end_1=<0,2,0>;
> #declare tube_end_2=<1,1,0>;
>
> now I guess I would need some initial vectors for the tube, say,
>
> #declare tube_vector_1=<0,-1,0>; //straight down
> #declare tube_vector_2=<1,0,0>; //left
>
> Now I guess I would need a "stiffness" constant, and perhaps the
> "stretched out" length of the tube
>
>
> Has anyone got these calculations/ideas/whatever?

Do a search for "ik neck". The name of the include is ikn.inc.
// INVERSE KINEMATICS NECK INCLUDE FILE FOR PERSISTENCE OF VISION 3.1
//
// Created by Rune S. Johansen, January 2000

It's an include for the creation of neck/tubes that have a start and an 
end points, a direction and a stiffness at both ends.
Made for version 3.1, but works perfectly with any later versions.

It looks like it's perfectly suited to your need.



Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.