API - Mesh triangulation
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-04-24
02:51 PM
- last edited on
‎2022-10-05
01:27 PM
by
Daniel Kassai
‎2019-04-24
02:51 PM
Greetings,
I'm working on a importer plugin for Archicad. The plugin needs to create a mesh based on a provided description. I've managed to create meshes with interior vertices using API_MeshLevelCoord. It would seem that Archicad generates the triangles in the mesh automatically if no triangles are specified. This is convenient. However, in my case it is crucial to be able to specify the exact triangles used in the mesh.
My question is, how can I specify the edges/triangles used in a mesh interior using API_Element + API_ElementMemo?
I'm working on a importer plugin for Archicad. The plugin needs to create a mesh based on a provided description. I've managed to create meshes with interior vertices using API_MeshLevelCoord. It would seem that Archicad generates the triangles in the mesh automatically if no triangles are specified. This is convenient. However, in my case it is crucial to be able to specify the exact triangles used in the mesh.
My question is, how can I specify the edges/triangles used in a mesh interior using API_Element + API_ElementMemo?
Labels:
- Labels:
-
Add-On (C++)
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-05-02 09:27 AM
‎2019-05-02
09:27 AM
Hello,
You cannot specify the triangulation for the mesh, because ARCHICAD will re-triangulate the mesh if the user edits it. BTW, AC uses a slightly modified version of the Delauney triangulation.
However, you can set you own triangulation for morphs; see the morphBody member in the element memo.
Best, Akos
You cannot specify the triangulation for the mesh, because ARCHICAD will re-triangulate the mesh if the user edits it. BTW, AC uses a slightly modified version of the Delauney triangulation.
However, you can set you own triangulation for morphs; see the morphBody member in the element memo.
Best, Akos
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-05-02 11:31 AM
‎2019-05-02
11:31 AM
Akos wrote:Good to know thanks Akos. Is there any chance for halfedge mesh in archicad?
Hello,
However, you can set you own triangulation for morphs; see the morphBody member in the element memo.
Best, Akos
I was about to sugest using morphs for each triangle separate and then unify all. But this seem like quite faster way.
jimmyenvall wrote:Morphs is bit different tool in terms of user edit capabilities but is's also mesh based.
create a mesh based
You can explor gdls as well to create mesh object. It all depends if you want to edit mesh in AC or not.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-05-02 05:30 PM
‎2019-05-02
05:30 PM
Thanks for the suggestions, I'll have a look into morphs.