Centroid Calculation in SubD volumes fails on the last versions

Hello,

In previous Rhino7 versions it worked fine, but now “_VolumeCentroid” fails (attached file)
VolumeCentroidCalculationFails.3dm (62.2 KB)

Maybe I am doing something wrong but I do not think so
Regards
Joao

Hi Joao -
I tested your file here on a version of 7.5 and the current in-house 7.7 and that seems to work fine on both. Which version are you running (SystemInfo)?
-wim

@wim Does not work for me in Rhino 7 SR6 2021-4-13 (Rhino 7, 7.6.21103.13001

From the command line:

Compatibility test succeeded in 0.77s
Blocking plug-in RDK_EtoUI.
Blocking plug-in Orca3D.
Blocking plug-in 3Dconnexion 3D Mouse.
Successfully read file “C:\Users\David Cockey\Downloads\VolumeCentroidCalculationFails.3dm”
1 closed SubD added to selection.
Command: VolumeCentroid
Select solids for volume centroid calculation
Select solids for volume centroid calculation. Press Enter when done
Calculating volume centroid… Press Esc to cancel
Unable to calculate centroid.

Added: AreaCentroid does not work either.

Rhino 7 SR6 2021-4-13 (Rhino 7, 7.6.21103.13001, Git hash:master @ 3d8b63e6571eb752e8348635aa75ec08cf87e183)
License type: Commercial, build 2021-04-13
License details: Cloud Zoo

Windows 10.0.19042 SR0.0 or greater (Physical RAM: 12Gb)

Computer platform: LAPTOP - Plugged in [97% battery remaining]

Hybrid graphics configuration.
Primary display: Intel(R) HD Graphics 4600 (Intel) Memory: 1GB, Driver date: 11-4-2020 (M-D-Y).
> Integrated graphics device with 3 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: NVIDIA GeForce GTX 860M (NVidia) Memory: 2GB, Driver date: 9-30-2020 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 456.71
> Integrated accelerated graphics device (shares primary device ports)
- Video pass-through to primary display device

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 9-30-2020
Driver Version: 27.21.14.5671
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 2 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Common Files\McNeel\Rhinoceros\7.0\Plug-ins\ClippingBox (4dfff1df-5f09-43ae-a044-77b115244b02)\1.0.0.0\Rhino 6\ClippingBox.rhp “ClippingBox” 1.0.0.0
C:\Users\David Cockey\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\ColorPicker\6.0.0\ColorPicker.rhp “ColorPicker”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.6.21103.13001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.6.21103.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.6.21103.13001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.6.21103.13001
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”
C:\Users\David Cockey\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\PanelingTools\2021.3.2.446\PanelingTools.rhp “PanelingTools”
C:\Users\David Cockey\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\SectionTools\2020.12.7.446\SectionTools.rhp “SectionTools”

Does not work in :

Rhino 7 SR6 2021-4-20 (Rhino 7, 7.6.21110.13001, Git hash:master @ 2e367bb5473238ebf7cfec4891ea72958ce57539)
License type: Commercial, build 2021-04-20
License details: Cloud Zoo

Windows 10.0.19042 SR0.0 or greater (Physical RAM: 64Gb)

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 2080 Ti (NVidia) Memory: 11GB, Driver date: 4-8-2021 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 462.31
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port #0

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 4-8-2021
Driver Version: 27.21.14.6231
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 11 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”

Hi Wim
I am running SR6 and it does not work as in Dave’s case
Rhino 7 SR6 2021-4-20 (Rhino 7, 7.6.21110.13001, Git hash:master @ 2e367bb5473238ebf7cfec4891ea72958ce57539)
License type: Educational, build 2021-04-20
License details: Stand-Alone

Windows 10.0.19041 SR0.0 or greater (Physical RAM: 7.9Gb)

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Hybrid graphics configuration.
Primary display: Intel(R) HD Graphics Family (Intel) Memory: 1GB, Driver date: 3-8-2017 (M-D-Y).
> Integrated graphics device with 3 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: NVIDIA GeForce 840M (NVidia) Memory: 2GB, Driver date: 12-18-2017 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 388.73
> Integrated accelerated graphics device (shares primary device ports)
- Video pass-through to primary display device

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 12-18-2017
Driver Version: 23.21.13.8873
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 2 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Common Files\McNeel\Rhinoceros\6.0\Plug-ins\KeyShot6RhinoPlugin (0b79bf6d-9d2c-4c19-84ff-d015c84b0a6b)\1.1.0.0\KeyShot6RhinoPlugin\Rhino 5.0\x64\KeyShot6RhinoPlugin.rhp “KeyShot6RhinoPlugin” 1.1.0.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.6.21110.13001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”

Hi -
Does the command work on a regular NURBS box?
-wim

Yes, it works and places a point in the centroid as it should.

Same for me.

What if you mesh the SubD object? Does VolumeCentroid then work for you?
Also, does it work for other SubD objects?
What about a new SubD object in a new file?
(grasping at straws here…)
-wim

Created a simple SubD box using SubDBox SubDBoxDC01.3dm (2.4 MB)

VolumeCentroid, AreaCentroid, Volume, Area do not work with the SubD box. (They work with the ToNURBS version.) Command line results below.

[quote=“wim, post:9, topic:122819”]
What if you mesh the SubD object?
[/quote]How do I mesh a SubD object?

Command: VolumeCentroid
Select solids for volume centroid calculation
Select solids for volume centroid calculation. Press Enter when done
Calculating volume centroid… Press Esc to cancel
Unable to calculate centroid.
Command: AreaCentroid
Select surfaces, polysurfaces, meshes or closed planar curves for area centroid calculation
Select surfaces, polysurfaces, meshes or closed planar curves for area centroid calculation. Press Enter when done
Calculating area centroid… Press Esc to cancel
Unable to calculate centroid
Command: Volume
Select solids or solid meshes for volume calculation ( Units=ModelUnits )
Select solids or solid meshes for volume calculation. Press Enter when done ( Units=ModelUnits )
Calculating volume… Press Esc to cancel
Unable to calculate volume.
Command: Area
Select surfaces, polysurfaces, hatches, closed planar curves or polygon meshes for area calculation ( Units=ModelUnits )
Select surfaces, polysurfaces, hatches, closed planar curves or polygon meshes for area calculation. Press Enter when done ( Units=ModelUnits )
Calculating Area… Press Esc to cancel
Unable to calculate area.

Works here on Rhino 7.6.21110.13001, 2021-04-20: