evaluate curve at t - Grasshopper2019-05-22T05:37:46Zhttps://www.grasshopper3d.com/forum/topics/evaluate-curve-at-t?feed=yes&%3Bxn_auth=noSo if the t parameter is base…tag:www.grasshopper3d.com,2016-09-01:2985220:Comment:15918552016-09-01T10:05:09.935ZCasey Kellhttps://www.grasshopper3d.com/profile/CaseyKell
<p>So if the t parameter is based upon a mathematical definition of the curve, is there a way to reconstruct this definition so that when you evaluate curves the parameter on the curve is directly proportional to length? Realizing now that any script or definition I have written that intends to find midpoints by reparameterizing is actually giving me false results. </p>
<p></p>
<p>Realizing now that any script or definition I have written that intends to find midpoints by reparameterizing is…</p>
<p>So if the t parameter is based upon a mathematical definition of the curve, is there a way to reconstruct this definition so that when you evaluate curves the parameter on the curve is directly proportional to length? Realizing now that any script or definition I have written that intends to find midpoints by reparameterizing is actually giving me false results. </p>
<p></p>
<p>Realizing now that any script or definition I have written that intends to find midpoints by reparameterizing is actually giving me false results. </p>
<p></p>
<p>For example, the divide length component gives you the t-parameter along the curve, but this does not work without shattering the curve if you want to measure the length of a curve from one parameter to another. How does the divide length component return the t-parameter on the curve?</p> thaaaaaaan you ... great !!!!…tag:www.grasshopper3d.com,2013-02-19:2985220:Comment:7932382013-02-19T18:58:39.112Zpantelis apostolouhttps://www.grasshopper3d.com/profile/pantelisapostolou
<p>thaaaaaaan you ... great !!!!!!!!!!!</p>
<p></p>
<p>thaaaaaaan you ... great !!!!!!!!!!!</p>
<p></p> tag:www.grasshopper3d.com,2013-02-19:2985220:Comment:7929952013-02-19T18:19:39.283ZChris Tietjenhttps://www.grasshopper3d.com/profile/ChrisTietjen
<p><a target="_self" href="http://api.ning.com:80/files/4iqR7n6daXW6EZzEmKu1OrVVZfKVRlyyQtcj3EjSaLqPttrywSqy41siL-3sWFiCWPFz7KIu6isGd6ed7lzZkxMr-XiyRpPR/EvaluateCurve.png"><img class="align-full" src="http://api.ning.com:80/files/4iqR7n6daXW6EZzEmKu1OrVVZfKVRlyyQtcj3EjSaLqPttrywSqy41siL-3sWFiCWPFz7KIu6isGd6ed7lzZkxMr-XiyRpPR/EvaluateCurve.png?width=721" width="721"/></a></p>
<p><a target="_self" href="http://api.ning.com:80/files/4iqR7n6daXW6EZzEmKu1OrVVZfKVRlyyQtcj3EjSaLqPttrywSqy41siL-3sWFiCWPFz7KIu6isGd6ed7lzZkxMr-XiyRpPR/EvaluateCurve.png"><img class="align-full" src="http://api.ning.com:80/files/4iqR7n6daXW6EZzEmKu1OrVVZfKVRlyyQtcj3EjSaLqPttrywSqy41siL-3sWFiCWPFz7KIu6isGd6ed7lzZkxMr-XiyRpPR/EvaluateCurve.png?width=721" width="721"/></a></p> thank you very much , I appre…tag:www.grasshopper3d.com,2013-02-19:2985220:Comment:7931362013-02-19T18:14:56.143Zpantelis apostolouhttps://www.grasshopper3d.com/profile/pantelisapostolou
<p>thank you very much , I appreciate your help</p>
<p>thank you very much , I appreciate your help</p> thank you very much ... need…tag:www.grasshopper3d.com,2013-02-19:2985220:Comment:7929912013-02-19T18:14:31.066Zpantelis apostolouhttps://www.grasshopper3d.com/profile/pantelisapostolou
<p>thank you very much ... need to do some studying i guess !!!</p>
<p></p>
<p>thank you very much ... need to do some studying i guess !!!</p>
<p></p> Hi Pantelis,
Evaluate curve…tag:www.grasshopper3d.com,2013-02-19:2985220:Comment:7930702013-02-19T17:55:24.303Zdjordjehttps://www.grasshopper3d.com/profile/djordje
<p>Hi Pantelis,</p>
<p></p>
<p>Evaluate curve component, evaluates (puts a point) at specific part of the curve, related to the "t" parameter.<br></br>"t" input is not an angle input, but rather a curve domain parameter. By clicking on the "C" input of the Evaluate curve component and choosing "reparametarize" you are changing the domain of the curve to "0 to 1". If the curve length represents the curve domain, then you can assign a point at the middle of the curve by inputting "0.5" as your "t"…</p>
<p>Hi Pantelis,</p>
<p></p>
<p>Evaluate curve component, evaluates (puts a point) at specific part of the curve, related to the "t" parameter.<br/>"t" input is not an angle input, but rather a curve domain parameter. By clicking on the "C" input of the Evaluate curve component and choosing "reparametarize" you are changing the domain of the curve to "0 to 1". If the curve length represents the curve domain, then you can assign a point at the middle of the curve by inputting "0.5" as your "t" parameter.<br/><br/>This great book, about grasshopper basics, will make some of your questions more clear:</p>
<p><a href="http://www.liftarchitects.com/downloads" target="_blank">http://www.liftarchitects.com/downloads</a></p> A curve can always be treated…tag:www.grasshopper3d.com,2013-02-19:2985220:Comment:7932322013-02-19T17:53:29.726ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>A curve can always be treated as a line which is potentially bend and stretched in 3D space. This means that we do not allow for curves that have gaps in the middle nor curves which split up into multiple strands. If a curve is closed, it simply means that the start and end points are in the same location, but not the curve is really a closed loop without start or end.</p>
<p></p>
<p>When you define a curve in this way it becomes possible to say that each curve has a 'domain' in which it…</p>
<p>A curve can always be treated as a line which is potentially bend and stretched in 3D space. This means that we do not allow for curves that have gaps in the middle nor curves which split up into multiple strands. If a curve is closed, it simply means that the start and end points are in the same location, but not the curve is really a closed loop without start or end.</p>
<p></p>
<p>When you define a curve in this way it becomes possible to say that each curve has a 'domain' in which it exists. The start of the domain represents the start of the curve and the end of the domain the end of the curve. A domain is a numeric range, say {0.0 to 12.67}. The curve is <em>undefined</em> for numbers outside of the domain. The numbers inside the domain are called 'parameters' and are usually represented with the symbol <em>t</em>. It's important to realize that parameters have little or nothing to do with length. The domain of a curve may well go from zero to the length of the entire curve, but that doesn't mean that when you measure a curve at <em>t=1.5</em> that you'll get a point 1.5 units along the curve. 'Parameter density' is not guaranteed to be constant meaning that if you walk along the curve at fixed parameter intervals, your speed in 3D space will not be constant. </p>
<p></p>
<p>Curve parameters are usually closely related to the mathematical definition of a particular type of curve. For Lines the parameters tend to go from zero (start) to one (end) regardless of the actual length of the line. Circles tend to have parameter domains from zero to 2*Pi as circles are described using Sine and Cosine functions. Nurbs curves are defined by a set of consecutive polynomials and the parameters are related to the variables in those polynomials.</p>
<p></p>
<p>Long story short, parameters are the only way in which you can measure/sample/evaluate a curve at a specific location. You can measure the location of a curve at a parameter, but also the tangent vector and the curvature etc. etc. It is possible to compute what parameter represents the curve at a certain distance from the start-point, but that computation can be quite complicated and expensive (from a processor point of view), which is why most curve evaluation components use curve parameters as input.</p>
<p></p>
<p>So when you use the Evaluate Curve component and you provide a parameter outside of the curve domain, the component will complain. If you provide a parameter inside the domain then you'll get the location and tangent vector of the curve at that parameter.</p>
<p></p>
<p>You never pick parameter by hand btw., they are almost always the result of a previous step in the algorithm.</p>
<p></p>
<p>--</p>
<p>David Rutten</p>
<p>david@mcneel.com</p>
<p>Poprad, Slovakia</p>