Skip to content

get_normal_vector issue #247

@adrimg89

Description

@adrimg89

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 working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions