BaseMesh attributes documentation is wrong
See original GitHub issueDescribe the bug
The online documentation, shows max_int_key
attributes that do not exist in Mesh.data
dictionary. Also accessing the data
attribute returns a dict that contains compas
datatype
and data
(again!)
To Reproduce Run the following code:
from compas.geometry import Box
from compas.datastructures import Mesh
box = Box.from_width_height_depth(2, 2, 2)
box = Mesh.from_shape(box)
print(box.name)
print(box.data.keys())
print(box.data['data'].keys())
print(box.data['data']['max_face'])
# The line bellow will fail
print(box.data['max_face'])
Expected behavior
Get for example max_face
but calling Mesh.data['max_face']
Desktop (please complete the following information):
- OS: macOS Catalina 10.15.7
- Python version: 3.7.6
- Python package manager : conda
- Compas: 0.91.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
stl package — Numpy stl 2.16.3 documentation - Read the Docs
Log a message with severity 'ERROR' on the root logger. If the logger has no handlers, call basicConfig() to add a console handler...
Read more >Modeling A Character Base Mesh Quickly With The Skin ...
... learn how to create rigged character base mesh with skin modifier. Also,we'll learn how to use Base Mesh for sculpting.1) Intro 00:002)....
Read more >Base Mesh Creation - ZBrush Docs
ZSpheres allow you to quickly create a base mesh with clean topology, which can then be sculpted into any form. The power of...
Read more >trimesh.base — trimesh 3.17.1 documentation
This raises an error if called on a non-watertight mesh. Parameters ... sparse – Has properties: dtype : bool shape : (len(self.vertices), len(self.faces))....
Read more >BASEMENT Reference manual
1.4 Tutorial 3: Using dividing constraints along boundary cross sections and setting up a BASEMENT simulation with a mesh from BASEmesh . ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
already did, refresh page…
the data dict is not meant to be used this way. perhaps we should underscore the attribute name.
max_vertex
is an attribute of the mesh and can be consulted at all times. will assign a property to this…