Find ngons in Sub-D surface

Positive these two lines are added and saved? I can not replicate the problem after these lines are added.

#r "RhinoCodePlugin.rhp"
#r "System.Drawing.Primitives.dll"

Take a look at RhinoCodeLogs command report and see if there are any errors reported there as well

Do I need to restart my computer?

First couple lines of a c# script:

// #! csharp Trav

#r "RhinoCodePlugin.rhp"
#r "System.Drawing.Primitives.dll"

using System;
using Rhino;
using Rhino.Commands;
using Rhino.DocObjects;
using Rhino.Geometry;
using Rhino.Input;
using Rhino.Input.Custom;
using Rhino.UI;
using Eto.Drawing;

var doc = RhinoDoc.ActiveDoc;

Nope. Should just work fine. I’ll keep testing. A copy of RhinoCodeLogs command report might help if you can DM me that as well

Sorry. Stupid me it works now. I have the same script in a Rhino 8 folder and another one in a Rhino 9 folder I the macro was loading the Rhino 8 version iinstead of Rhino 9.

Ok perfect. Thanks for letting me know. Phew. I was going crazy for a second hahaa :smiley:

Sorry

And thanks for your help!

RH-86357 is fixed in Rhino 8 Service Release 18 Release Candidate

Can anyone help me to get this script to work in Rhino 8 SR36? Thank you!

Can you describe the issue? The original script I posted works here.

If you type ScriptEditor and paste in the code to a new C# script and click Run does it work?



Hi Travis. Thank you for your reply. The script works if I replicate your example with a SubD sphere, but if I run it and choose this dragon fish model, it produces no result and no error. I’ve tried with “N-Gons Only” ON and OFF. I just installed the 8.36.26296.17001update a few minutes ago.

Same thing with this model. These models were created in Rhino 5 with T-Splines. When I open them in Rhino 8, they come in as SubD geometry. I know T-Splines used the Catmull-Clark algorithm, but there seems to be a conflict. Can you explain? Thanks.

if you can send me the geometry I can take a look.

Here you are, Travis. Thanks.

(attachments)

Eric Brock_SubD Geometry_Travis Serio.3dm (21.5 MB)

This should fix it up!

MarkNgons.cs (2.3 KB)

It works! Thanks, Travis! Any possible way to modify the script so it only shows markers on the visible faces?