Grasshopper

algorithmic modeling for Rhino

Hi Djordje,

Following the example Create3dBuildings_Trees_Streets i've found a bug with the OSM3D when connecting a terrain of type Mesh. It complains about:

1. Type conversion failed from Mesh to Brep

I use the TerrainGeneratorwith type 1 (circular mesh). Changing to type 3 (circular brep) it is ok (but no colors on mesh)

Curiously the component turns red and the error message appears in the bubble at the right corner. But it still works and the buildings are created. Also, testing the code the error doesn't show, so can't see at which line it happens. It just says:

Ground terrain inputted: no   

FYI.

-A.

Views: 361

Replies to This Discussion

Hi Abraham,

I forgot to add information to groundTerrain_ inputs of both "OSM 3D" and "OSM Search" components that only surface(brep) inputs will be allowed, not mesh ones. I apologize for that. I will make sure I add this information to groundTerrain_ inputs in the next few days.


So if you are using "Gismo Terrain Generator" component (former "Ladybug Terrain Generator 2" component), only the following types are allowed for groundTerrain_ input:
    type_ = 2 (surface with rectangular edges)

    type_ = 3 (surface with circular edges)

If you are using "Ladybug Terrain Generator" component, then only the:

    type_ = 1 (surface with rectangular edges)

is allowed.

As for terrain not being colored when it is created as a surface, you can analyse it additionally with "Terrain Analysis" component for Elevation analysis type. It can even be colored for rendering afterwards by using the "OSM Render Mesh" component. Check the attached file below.

Have in mind  that in urban areas "Ladybug Terrain Generator" component produces much more precise terrain than "Gismo Terrain Generator" component. On the other hand, the latter component can generate much larger terrain areas (up to 10 000 sq km2, at least in theory).

The reason why component might still work even though a terrain mesh has been added to the groundTerrain_ input is probably because once groundTerrain_ input fails to convert a mesh to a brep, this results in it being equal to None. Component then considers as if groundTerrain_ input is empty and runs as if nothing has been added to it (the buildings are laid down on a flat plane with 0,0,0 as the plane origin).

Thank you once again for all the testing you are doing!!! It really makes Gismo a better plugin!!

Attachments:

100%

Thanks!!

Will keep checking ...

-A.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service