Trouble Creating Custom Geometry #273
-
Hello all, I was able to generate meshes of the primitive sections and the example custom geometry without issues, but I tried to create my own custom shape (just a basic 1x1 square) and I'm getting an error (ValueError: Input must have at least three vertices.). I read over the API documentation and am struggling to diagnose the problem. Here is my code in Colab: %pip install sectionproperties points = [[0,0], geometry = Geometry.from_points(points, facets, control_points) geometry = geometry.create_mesh(mesh_sizes=2.5) section = Section(geometry) section.calculate_geometric_properties() section.plot_centroids() Any guidance would be appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I figured out the issue (facets are not optional). Thanks anyway. |
Beta Was this translation helpful? Give feedback.
I figured out the issue (facets are not optional). Thanks anyway.