algorithmic modeling for Rhino
C# doesn't have a node-in-code api (yet) so you either have to:
Hi David,
Thanks for answering, here my idea and the result:
m_Boundary = array of boundary curves;
m_Mesh = generic mesh;
m_NakedVertex = array of naked mesh edges;
m_Centroid = Point3d of centre of the connection;
for (int i = 0; i < m_Boundary.Count; i++)
{
{
for (int r = 0; r < m_NakedVertex.Length; r++)
{
if (m_NakedVertex[r] == true)
{
Point3d EndPoint = m_Mesh.Vertices[r];
if (m_Boundary[i].Contains(m_Mesh.Vertices[r]) == PointContainment.Inside || m_Boundary[i].Contains(m_Mesh.Vertices[r]) == PointContainment.Coincident)
{
Line line = new Line(m_Centroid, EndPoint);
m_Connections.Add(line);
}
}
}
}
}
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