-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【PPSCI Doc No.58、59、60】Mesh.from_pymesh、translate、scale #818
【PPSCI Doc No.58、59、60】Mesh.from_pymesh、translate、scale #818
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,感谢提交PR
ppsci/geometry/mesh.py
Outdated
[1. 0. 1.] | ||
[1. 1. 1.] | ||
[0. 1. 1.]] | ||
>>> print(mesh.translate((-0.5, 0, 0.5), 0).vertices) # the center is moved to the translation vector. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用True或False代替0/1
ppsci/geometry/mesh.py
Outdated
[ 0. -0.5 1. ] | ||
[ 0. 0.5 1. ] | ||
[-1. 0.5 1. ]] | ||
>>> print(mesh.translate((-0.5, 0, 0.5), 1).vertices) # the translation vector is directly added to the geometry coordinates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用True或False代替0/1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的好的,谢谢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…#818) * update mesh.py * update mesh.py
PR types
Others
PR changes
Docs
Describe
任务链接:#686 No. 58-60
完善 ppsci.geometry.Mesh内from_pymesh、translate、scale函数