Skip to content

Meshpy Triangle Point Attributes #97

Answered by inducer
clockwork85 asked this question in Q&A
Discussion options

You must be logged in to vote

test_point_attributes may help:

def test_point_attributes():
import meshpy.triangle as triangle
points = [(1, 1), (-1, 1), (-1, -1), (1, -1)]
info = triangle.MeshInfo()
info.set_points(points)
info.number_of_point_attributes = 2
info.point_attributes.setup()
for i in range(len(points)):
info.point_attributes[i] = [0, 0]
triangle.build(info)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by clockwork85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants