Skip to content

Conversation

@sc-ita
Copy link
Contributor

@sc-ita sc-ita commented Aug 6, 2016

@mtezzele @fsalmoir
unvhandler: there is an important bug in the parsing of the mesh points. The last node (mesh point) is stored as (0., 0., 0.), instead of the actual value. Furthermore, it was not very flexible as it could only read the .unv file provided with the tutorial, and not, for instance, one generated with gmsh. I modified significantly the code to improve this feature.
freeform: I changed the code simply in order to apply the free form deformation only to those nodes inside the box domain. The performance greatly benefits.

if line.startswith(' 2411'):
index = num
if num == index + 2:
if line.startswith(' -1'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that inside startswith there are spaces, not a tab. Same below at line 85. This should solve the error in the unv tests.

@mtezzele mtezzele merged commit 4f5a831 into mathLab:master Aug 7, 2016
DavideBaroliUniLu pushed a commit to DavideBaroliUniLu/PyGeM that referenced this pull request Oct 11, 2016
* improved performance in freeform (~25%)
* fixed bug and improved flexibility in unvhandler
* new write comparison in unv tests
mtezzele pushed a commit that referenced this pull request May 17, 2017
* improved performance in freeform (~25%)
* fixed bug and improved flexibility in unvhandler
* new write comparison in unv tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants