algorithmic modeling for Rhino
Tags:
Ok. I see. Could you isolate (internalise data) the mesh geometry, the elipses and the part that creates the ellipses and post the definition and I'll have a look at it.
But I guess it's going to be something similar to what David suggested below.
Thank you for your help. It will be very helpful.
Not quite there yet but I didn't have more time at the moment.
Have a look. You need to rotate the ellipses by 90deg and flip them into the right direction as David explained. Let me know how your're getting on. I'll can have another quick look tomorrrow.
Thank you very much Ralf both for your patience and performance.
Have an excellent week end.
Marc
Hi Ralf...I saw your C# component used to flip normals...I have a similar problem:
I'm trying to unify the normals of a mesh built from a metaball function.
When I move the points the geometry changes and also the normals (I also analyzed the output with the plug-in ladybug that works only with the right normals)
I would like to modify the script to obtain a good result but my attemps failed...could you help me please?
Thanks in advance
If you can use your base mathematica mesh as a guide, then you can evaluate the normal on the mesh at the closest point to each of your ellipse center points, and then determine the angle between the base mesh closest-point normal and your ellipse-center normals. If that angle is greater than Pi/2, you flip it, if not, you leave it as is.
I have seen this problem and experienced it several times (if I am not mistaken as to your problem). It seems to me you simply need to orient your planes in the proper direction. From what I can tell you are using mesh.normal component as well as a plane.normal component later on. Dependent on your input geometry, simply using these components may not give you a dersirable result (i.e., you planes may be normal to to the vector, however, they may be skewed along the rotation axis). You need to use more plane components to define specifically the orientation (if the orientation is of such importance). Try 3 point plane for instance. It will require a bit of data management but doable I think.
Does this help??
Ron
First of all thanks for the quick reply,
but I still have some doubt about what you said:
I need to define the orientation of each mesh face in a dynamic-way because using the metaball component, when you change the position of the points (and I need to work with that) it generates isocurves but their orientation changes in a non predictable way.
In my definition the geometry is already defined, could you explain more how can I use the 3 point plane to define a NEW orientation of each face mesh?Or I need to define again all the geometries in a different way?
I attached the definition on the last post.
Really thanks for your time
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by