u are wellcome!
P.S.: in Construction planes, I just created 3 reference Plane.All those have the same (Origin Pt) == the centroid of the base of the Geometry(TUBE).
i am happy to be helpful.:)
k for the core dll of 3.5 which can be downloaded from: http://www.microsoft.com/en-us/download/details.aspx?id=21
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 4:44am on September 23, 2012
created surface with sweep and rotate them with number of division. Section curves of 2Railsweep is defined with 3 Point arc and shape is also controlable.
You can change shape by sliding 16 paramteters.
The definition is rather long, hope somebody can modify with more sphiscated manner.
日本語
パラメトリックにボトルデザインをする.ghxファイルを作成しました。ボトルのプロファイルカーブを、参照となる円に対して、高さ、シフト、オフセットでコントロールポイントの位置情報を与えて定義。次にスイープで分割数だけ回転コピーして作成。
スイープの断面、3点円弧で作成し、形状コントロールするようにしています。
ボトル形状は、16のパラメーターをスライドすることで定義出来ます。
…
300895
FB: https://www.facebook.com/ChidoStudio
FB: https://www.facebook.com/WEDOTdesign
Detalles:
Instructores:
Arturo de La Fuente (Chido Studio Argentina)
Eliana Monaco (Chido Studio Argentina)
Luis de La Parra (Chido Studio Mexico)
WS ROSARIO
Lugar:
DOSCASAS
ROSARIO: Sarmiento 1232 Planta Alta (2000 Rosario)
Fechas:
Viernes 16 de Mayo 2014 – 11:00 – 19:00 hs
Sábado 17 de Mayo 2014 – 11:00 – 19:00 hs
Domingo 18 de Mayo 2014 – 11:00 – 19:00 hs.
WS BUENOS AIRES
Lugar:
GARAGELAB
BsAs: Roseti 1380 CABA
Fechas:
Jueves 22 de Mayo 2014 – 18:00 – 21:00 hs
Viernes 23 de Mayo 2014 – 18:00 – 21:00 hs
Sábado 24 de Mayo 2014 – 11:00 – 20:00 hs.
Domingo 25 de Mayo 2014 – 11:00 – 20:00 hs
Importante:
Todos los niveles de experiencia son bienvenidos el único requisito es tener un entendimiento básico de los programas CAD y una actitud positiva hacia el aprendizaje de dichas herramientas. Necesitas llevar una laptop, nosotros te instalamos los programas de prueba.
Si planeas venir de fuera de la ciudad avísanos y te pondremos en contacto con otras personas que también vayan a hacerlo para en caso de desearlo puedan compartir su lugar de estancia.
Al participar en el workshop obtienes el 50 % de descuento en la licencia educacional Rhinoceros por medio de Rhino Chile.
COSTOS:
Profesionales: $1600
Estudiantes: $1400
Si ya realizaste algún Workshop de Chidostudio tenes un 20% descuento en esta inscripción.
Si venis en grupo con 2 amigos más cada uno tiene un %20 de descuento.
Proceso de Inscripción:
El participante deberá un mail a bsas@chidostudio.com donde se le enviará el procedimiento y medios de pago.
El depósito mínimo para reservar la matrícula es del 50% el resto deberá ser cubierto el día del evento.
Una vez que el depósito se haya llevado a cabo el participante deberá enviar a este correobsas@chidostudio.com los siguientes datos:
Nombre completo
Email
Teléfono
Institución educativa u Oficina
Archivo adjunto del recibo del depósito bancario
En cuanto recibamos la información immediatamente nos pondremos en contacto para especificar los pasos a seguir.
Contacto:
Arturo de La Fuente
bsas@chidostudio.com
Tel: (+54) 11-57268799
…
y3d(_pt,_v) length = Rhino.Geometry.Intersect.Intersection.MeshRay(_m,ray) print length if length < 0.0: lines=Rhino.Geometry.Line(_pt,_pt+(100*_v)) return lines
if Run == True: if parallel: meshVecTupleL = [] for pt in points: for v in vectors: meshVecTupleL.append((mesh, pt, v)) withNulls = ghpythonlib.parallel.run(intersect, meshVecTupleL, True) a = [item for item in withNulls if item != None]
1. How come we never defined length as an empty list and still it stored all the numbers?
2. If length < 0.0 , lines are being created. How does python/rhino knows which pt to make the line at since we are processing the entire list "length" ?
3. If I add another statement before return lines that would return the startpoint of the line instead of the line itself, it doesn't work. Why is that?
Thanks for your help. …
Added by Apoorv Goyal at 3:41pm on January 13, 2015
amespace.... somekind of playground which you can manipulate your way but is a standard part of rhinocommon.
Ah and what would be also very cool is a conduit which can be selected like a curve,brep etc. but does something totaly different (somethin you can modify) Till now I have a custom selector which is totally crap. I want to build a own contrained parametric sketcher for grasshopper. This is only some testing code.
I will send you something. As a idea....
private void RunScript(List<GeometryBase> x, object y, ref object A, ref object B) { Rhino.Geometry.GeometryBase geobase_result; List<Rhino.Geometry.GeometryBase> geobase_ll = x; Point3d point = new Point3d(12, 12, 12); GetPointAtCursorPos(ref point, geobase_ll, out geobase_result); A = point; B = geobase_result; }
Custom additional code::
[System.Runtime.InteropServices.DllImport("user32.dll")] public static extern bool GetCursorPos(out System.Drawing.Point pt); [System.Runtime.InteropServices.DllImport("user32.dll")] public static extern bool ScreenToClient(IntPtr hWnd, ref System.Drawing.Point pt); public static bool GetPointAtCursorPos(ref Point3d point, List<Rhino.Geometry.GeometryBase> geobase_in, out GeometryBase geobase_out) { geobase_out = null; bool rc = false; Rhino.Display.RhinoView view = RhinoDoc.ActiveDoc.Views.ActiveView; if (view != null) { System.Drawing.Point pt; if (GetCursorPos(out pt) && ScreenToClient(view.Handle, ref pt)) { Transform xform = Transform.Unset; xform = view.ActiveViewport.GetTransform(Rhino.DocObjects.CoordinateSystem.Screen, Rhino.DocObjects.CoordinateSystem.World); point = new Point3d(pt.X, pt.Y, 0.0); point.Transform(xform); // Vector3d camera_vector = view.ActiveViewport.CameraDirection; Rhino.Geometry.Ray3d my_ray = new Rhino.Geometry.Ray3d(point, camera_vector); Line ray_line = new Line(my_ray.Position, my_ray.Direction * 2000000); Curve ray_curve = ray_line.ToNurbsCurve(); int int_sel; Point3d pt_crv = Point3d.Unset; Point3d pt_obj = Point3d.Unset; ray_curve.ClosestPoints(geobase_in, out pt_crv, out pt_obj, out int_sel); if (theshold() > pt_crv.DistanceTo(pt_obj)) { geobase_out = geobase_in[int_sel]; } else {geobase_out = null;} // rc = true; } } return rc; } public static double theshold() { Point3d[] rec_pt = RhinoDoc.ActiveDoc.Views.ActiveView.ActiveViewport.GetNearRect(); double aspect = rec_pt[0].DistanceTo(rec_pt[2]); return aspect / 100; }…
and add a curve for every iteration of the loop, or better yet, just deactivate the list option of the crv input so that the script is executed once for every curve. The code you'll need in this case should be something like:
Dim scale As New OnXform
scale.Scale(pt, 1000)
crv.Transform(scale)
A = crv
…
Added by Vicente Soler at 2:15pm on November 11, 2009