Message Boards Message Boards

0
|
2185 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Change the markers of a 3D mesh?

Posted 2 years ago

Is it possible to change the number of 3D face markers? I would like to put a different number on each face. Attached is a notebook.
Regards,
Sinval

POSTED BY: Sinval Santos
4 Replies
Posted 2 years ago

Hello Henrik, thanks for your attention. This procedure replaces all markers. I'm creating a routine to replace just a few specific markers.

POSTED BY: Sinval Santos

Sinval Santos,

since your mesh visualization

meshgraphics = 
  bmesh["Wireframe"[PlotRange -> {All, All, {0, 10}}, 
    "MeshElementMarkerStyle" -> Directive[FaceForm[Red]], 
    "MeshElementStyle" -> Directive[FaceForm[Opacity[0.5, Green]]]]];

is just a Graphics3D, a simple hack is possible:

i = 1;
Replace[meshgraphics, Text[_, p__] :> Text[i++, p], All]

enter image description here

POSTED BY: Henrik Schachner
Posted 2 years ago

Thank you for your attention Gianluca. I found the "BoundaryMarkerFunction" option in the documentation, but I couldn't adapt it to the mesh created in the attached document. I will keep searching.

POSTED BY: Sinval Santos

In the documentation for ToBoundaryMesh I see an option called "BoundaryMarkerFunction". Did you try it?

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract