DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="3.2.0-beta5082" />

 PanelSurface

public int NumPanels { get; }

Returns the number of panels in the PanelSurface.

public int NumVertices { get; }

Returns the number of vertices in the PanelSurface.

public static PanelSurface ByCrossSplitSquares(Surface surface, int numU, int numV, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a square grid, with each square split into four triangles by its diagonals.

public static PanelSurface ByCustomOrthogonalLattice(Surface surface, int numU, int numV, PanelSurfaceBoundaryCondition boundaryCondition = 0)

public static PanelSurface ByDiagonallySplitSquares(Surface surface, int numU, int numV, bool alternativeDiagonal = false, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a square grid, with each square split into two triangles by a diagonal. By default, the diagonal is from the bottom left corner to the top right corner.

public static PanelSurface ByDiamonds(Surface surface, int numU, int numV, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a diamond-shaped pattern.

public static PanelSurface ByHexagons(Surface surface, int numU, int numV, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a hexagonal tiling pattern.

public static PanelSurface ByParallelograms(Surface surface, int numU, int numV, double shearFactor, bool alignWithUAxis = false, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in parallelograms tiled vertically and horizontally. Each parallelogram is a square with a shear applied along the V-axis or U-axis determined by the ‘alignWithUAxis’ input and a shear factor. By default the parallelograms are aligned with the V-axis.

public static PanelSurface ByQuads(Surface surface, int numU, int numV, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a square tiling pattern.

public static PanelSurface ByRhombiTriHexagonals(Surface surface, int numU, int numV, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a tiling with one triangle, two squares, and one hexagon at each vertex.

public static PanelSurface BySplitDiamonds(Surface surface, int numU, int numV, bool splitHorizontally = false, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a diamond-shaped pattern, with each diamond split vertically or horizontally into two triangles. By default, each diamond is split vertically.

public static PanelSurface ByStaggeredQuads(Surface surface, int numU, int numV, bool staggerVertically = false, double displacementFactor = 0.5, PanelSurfaceBoundaryCondition boundaryCondition = 0)

Panels the input surface in a staggered square pattern. By default, the pattern is staggered horizontally.

public int[] GetNumPanelVertices(int[] panelIndices)

Returns the number of vertices for each panel in the list of panel indices.

public Point[][] GetPanelPoints(int[] panelIndices)

Returns the points for each panel in the list of panel indices.

public Polygon[] GetPanelPolygon(int[] panelIndices)

Returns the polygonal boundary for each panel in the list of panel indices.

public Vertex[][] GetPanelVertices(int[] panelIndices)

Returns the vertices for each panel in the list of panel indices.

public Point GetPoint(int vertexIndex)

Returns the point corresponding to the vertex index in the PanelSurface.

public Vertex GetVertex(int vertexIndex)

Returns the vertex corresponding to the vertex index in the PanelSurface.

public int GetVertexIndex(int panelIndex, int vertexNumber)

Returns the index for a given panel on the input surface and for the vertex inside the panel.