not sure about my method used to obtain the result.I think is really complex; do you know a smart method to simplify all my equation?
thanks guys!! :D…
t.
I tried to convert the tlb to a dll with tlbexp but that says:
TlbImp : error TI1029 : Type library was exported from a CLR assembly and cannot be re-imported as a CLR assembly.
The tlb can be used in VBA/Excel but I want to access it directly from GH.
Is there a way?
Thanks…
Added by Mihai Pruna at 4:53pm on December 5, 2013
XY with the origin set to the point location.
b) the point in D is interpreted as a vector. That's a vector pointing from World(0;0;0) to your point location.
Align plane rotates the plane to match Plane X direction to your vector D. Now for your position 3 the angle is either 0° or 180°. Since calculating the angle will always return both angle and reflex angle, you need to decide, which to use. AlignPlane uses minimal rotation. Hence your WorldXY will get no rotation at all for your position 3.
In order to get this working:
Use PFrames to get perpendicular planes along the curve, that are oriented in tangent and minimal curvature direction. PFrames orient Z along the tangent and x along curvature so you need to construct a new plane from those to get the plane orientation, you have now.
…
e new grasshopper?
Private Sub RunScript(ByVal value As Object, ByVal minVal As Object, ByVal maxVal As Object, ByRef pattA As Object, ByRef pattB As Object, ByRef pattC As Object, ByRef pattD As Object, ByRef Test As Object) Dim dom As Double = maxVal - minVal Dim I As Integer Dim K As Double Dim A(value.count-1) As Integer Dim B(value.count-1) As Integer Dim C(value.count-1) As Integer Dim D(value.count-1) As Integer
For I = 0 To value.count - 1 K = (value(I) - minVal) / dom If K <= 0.25 Then A(I) = 1 B(I) = 0 C(I) = 0 D(I) = 0 End If If K <= 0.5 And K > 0.25 Then A(I) = 0 B(I) = 1 C(I) = 0 D(I) = 0 End If If K <= 0.75 And K > 0.5 Then A(I) = 0 B(I) = 0 C(I) = 1 D(I) = 0 End If If K <= 1.1 And K > 0.75 Then A(I) = 0 B(I) = 0 C(I) = 0 D(I) = 1 End If Next pattA = A pattB = B pattC = C pattD = D End Sub…
The idea of a Path Mapper is that you write a representation of what you have now and then another representation of what you're after. For example, let's say that you have paths containing 4 elements and you want to reverse the order of them:
{0;0;0;0} -> {0;0;0;0}
{0;0;0;1} -> {1;0;0;0}
{0;1;0;2} -> {2;0;1;0}
{0;1;0;5} -> {5;0;1;0}
You can encode this operation in a Path Mapper, using notation like this:
{A;B;C;D} -> {D;C;B;A}
Removing the last elements in those paths will look like this:
{A;B;C;D} -> {A;B;C}
Removing the first and last elements:
{A;B;C;D} -> {B;C}
Flattening:
{A;B;C;D} -> {0}
As you see you don't have a choice when it comes to the part before the arrow. That always has to represent the existing layout. You can choose the name of the variables, it doesn't have to be A, B, C etc. but beyond that your hands are tied.
However on the right hand side you have lots and lots of possibilities. See Danny's awesome tutorial here.
--
David Rutten
david@mcneel.com
Tirol, Austria…
Added by David Rutten at 3:05am on October 9, 2013
his could be made easily, if I sort the files in the folder using windwos! :D ... But If a slider could make the frames the other way around, that would be real nice :D ... Because I need them in both ways actually :D ...
you feel me?…
the mapper would be {A;B;C;D} and as your list of numbers changes in the 3rd row the output letter would be (C)
so would look like this.... {A;B;C;D} (i) > {i} (C)
Matt…
Added by Matt Gaydon at 11:09am on February 19, 2010