-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi!
I am having an issue with get_normal_vector method. I'll show you an example:
contact_facets=ec.get_element_contact_facets(elements[0].id, elements[1].id)
print('contact_facet_normal_vector',contact_facets.get_normal_vector(0),'nr_of_contact_facets',contact_facets.count())
surface=ec.create_surface(ec.get_element_contact_vertices(elements[0].id, elements[1].id))
facets=gc.get_element_facets(surface)
print('surface_normal_vector',facets.get_normal_vector(0),'nr_of_surfaces',facets.count())
This is the answer at the prompt:
contact_facet_normal_vector [0.000000, 0.000000, 0.000000] nr_of_contact_facets 1
surface_normal_vector [0.000000, -1.000000, -0.000000] nr_of_surfaces 1
As you can see, if I get the normal vector of a contact facet, the program returns a (0,0,0) point 3d, but if I convert that face to a surface, then it returns the correct vector.
Could you help me, please?
Thank you very much :)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working