algorithmic modeling for Rhino
Hi forum,
The "decompose mesh" component outputs "mesh normals" but what do these normals correspond to: Are they normal to the mesh faces at their centre or at a specific vertex?
How would you then extrude mesh edges using the mesh normals?
Hope this makes sense,
Many thanks,
Arthur
Tags:
The normals from "decompose mesh" are the vertex normals, not the face normals.
There is a Face Normals component, which might be from [uto]'s Mesh Tools
Thanks Benjamin and Danny!
If I use the "mesh normal" output as direction for a Line SDL and the Vertices as start points for the line, shouldn't I get perpendicular lines to the mesh vertices?
Right now I get vertical lines:
UTO's mesh normal works great for the center of the mesh but how could I extrude the edges of the mesh perpendicularly (without overlaps) ?
Thanks Danny!
That's weird, I just tried again and still getting vertical lines (mesh attached)...
Those normals need rebuilding.
Either do it in Rhino (RebuildMeshNormals)
or use the attached C# script in Grasshopper
Well there you go, you learn something new every day. If anyone else comes across this problem, you can check the Object Description in the Properties toolbar, click on Details.
Before RebuildMeshNormals:
meshID: 2e7ea634-5b7b-45a5-90f0-d25c01bb9cd5 (108)
Layer name: Lights
Render Material:
source = from layer
index = -1
Attribute UserData:
UserData ID: B0EE2168-8EC6-42ed-A962-26DEB8CC8F9A
Plug-in: Rhino Render
description: Rhino Renderable Object UserData
saved in file: no
copy count: 1
Geometry:
Valid mesh.
Open polygon mesh: 391 vertices, 427 polygons
bounding box: (-23377.3,-17801.2,8850) to (-13700.8,-6203.83,10115.9)
After command:
meshID: 2e7ea634-5b7b-45a5-90f0-d25c01bb9cd5 (111)
Layer name: Lights
Render Material:
source = from layer
index = -1
Attribute UserData:
UserData ID: B0EE2168-8EC6-42ed-A962-26DEB8CC8F9A
Plug-in: Rhino Render
description: Rhino Renderable Object UserData
saved in file: no
copy count: 2
Geometry:
Valid mesh.
Open polygon mesh: 391 vertices, 427 polygons with normals
bounding box: (-23377.3,-17801.2,8850) to (-13700.8,-6203.83,10115.9)
Daniel,
I'm having a problem with your script. It seams easy enough (two lines of code!) but it isn't working for me (See screenshot). Although there are no errors with the script, the normals are not rebuilt as they are with the Rhino command RebuildMeshNormals.
Any idea on why the normals are not being computed to begin with? The mesh was made using Kangaroo and Weaverbird. I can provide the whole Gh file with Kang and Wb if needed.
On a related question, I wasn't able to find a similar method in rhinoscript, rhinocommon, or python. Has it not been added yet or am I just missing it?
Thanks,
Andrew
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