-
Notifications
You must be signed in to change notification settings - Fork 108
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
Explicit methods for geometry and separate methods for doc objects #1378
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1378 +/- ##
==========================================
- Coverage 60.11% 60.09% -0.02%
==========================================
Files 207 207
Lines 22234 22234
==========================================
- Hits 13366 13362 -4
- Misses 8868 8872 +4 ☔ View full report in Codecov by Sentry. |
A very simple filter that includes all faces is ``def facefilter(face): return True``. | ||
Default parameter value is None in which case all faces are included. | ||
cls: :class:`compas.geometry.Mesh`, optional | ||
cls: :class:`compas.datastructures.Mesh`, optional |
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.
what is this for?
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.
ah is this so you can get e.g. a Polyhedron
instead?
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.
no, if you want a subclass of mesh instead of the default
from compas.tolerance import TOL | ||
from compas.geometry import Surface | ||
|
||
# from compas.tolerance import TOL |
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.
remove?
@@ -2,21 +2,15 @@ | |||
from __future__ import division | |||
from __future__ import print_function | |||
|
|||
import Rhino # type: ignore | |||
|
|||
# import Rhino # type: ignore |
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.
remove?
src/compas_rhino/objects.py
Outdated
temp = mgeo.TopologyVertices.MeshVertexIndices(tvindex) | ||
vindices.append(temp[0]) | ||
return vindices | ||
# def get_meshes(layer=None): |
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.
remove?
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.
left some comments but generally lgtm
Co-authored-by: Chen Kasirer <[email protected]>
…into conversions-api
What type of change is this?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.md
file in theUnreleased
section under the most fitting heading (e.g.Added
,Changed
,Removed
).invoke test
).invoke lint
).compas.datastructures.Mesh
.