-
Hi @RobPasMue, If I import a simple model like the one below, the three surfaces show up as a simgle surface within the model.plot() display. This is how the simple test model looks like in Rhino: Here is the result within the plot display of GeometryService: The model components still seem to be detached after the import, see the model.components output in python: In [25]: model.components
Out[25]:
[ansys.geometry.core.designer.Component 0x2923949a8f0
Name : Ben
Exists : True
Parent component : Named_Selection_Rhino_Example
N Bodies : 0
N Beams : 0
N Coordinate Systems : 0
N Design Points : 0
N Components : 1,
ansys.geometry.core.designer.Component 0x292394ae140
Name : Marc
Exists : True
Parent component : Named_Selection_Rhino_Example
N Bodies : 0
N Beams : 0
N Coordinate Systems : 0
N Design Points : 0
N Components : 1,
ansys.geometry.core.designer.Component 0x292394bcd90
Name : Anna
Exists : True
Parent component : Named_Selection_Rhino_Example
N Bodies : 0
N Beams : 0
N Coordinate Systems : 0
N Design Points : 0
N Components : 1,
ansys.geometry.core.designer.Component 0x292394bfe20
Name : Andy
Exists : True
Parent component : Named_Selection_Rhino_Example
N Bodies : 0
N Beams : 0
N Coordinate Systems : 0
N Design Points : 0
N Components : 1,
ansys.geometry.core.designer.Component 0x292394d78e0
Name : CurveA
Exists : True
Parent component : Named_Selection_Rhino_Example
N Bodies : 0
N Beams : 0
N Coordinate Systems : 0
N Design Points : 0
N Components : 1] Is it possible to color the components separately, or even use a different color for the edges? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @dkowollik! I understand you might assume that the three surfaces show up as a single surface given the plot representation you use, but they are effectively independent, just like you see on PyPrimeMesh and on Discovery directly. With #1376 you will be able to plot each component/body with its corresponding product side color (so they will show up as blue, purple, green and red). We are also working on improving the edge representation by default so that it is clearer as well but that might take us a bit more time. A quick solution for your case is to do as follows: https://geometry.docs.pyansys.com/version/stable/examples/01_getting_started/05_plotter_picker.html#Render-in-different-colors Effectively, when you request design.plot(multi_colors=True) |
Beta Was this translation helpful? Give feedback.
Hi @dkowollik!
I understand you might assume that the three surfaces show up as a single surface given the plot representation you use, but they are effectively independent, just like you see on PyPrimeMesh and on Discovery directly.
With #1376 you will be able to plot each component/body with its corresponding product side color (so they will show up as blue, purple, green and red). We are also working on improving the edge representation by default so that it is clearer as well but that might take us a bit more time.
A quick solution for your case is to do as follows: https://geometry.docs.pyansys.com/version/stable/examples/01_getting_started/05_plotter_picker.html#Render-in-different-…