question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BaseMesh attributes documentation is wrong

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brgcodecommented, Dec 14, 2020

already did, refresh page…

0reactions
brgcodecommented, Dec 14, 2020

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found