Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flag for procedurally-calculated geometry

4 REPLIES 4
Reply
Message 1 of 5
CADacombs
213 Views, 4 Replies

Flag for procedurally-calculated geometry

Does the API have a property or method that reports whether geometry is procedurally calculated?  If not, please add one.

 

A workaround is to use BRepBody.convert or BRepBody.convert with BRepConvertOptions.ProceduralToNURBSConversion then compare the input to output to determine whether a conversion had occurred.

 

Thank you,

Steve

4 REPLIES 4
Message 2 of 5
MichaelT_123
in reply to: CADacombs

Hi Mr CADaCombs,

 

Yes, it has.

Look at Surface Object and its SurfaceTypes Enumerator 

 

Regards

MichaelT

 

MichaelT
Message 3 of 5
CADacombs
in reply to: MichaelT_123
Message 4 of 5
MichaelT_123
in reply to: CADacombs

Hi Mr CADaCombs,

 

NameValueDescription
ConeSurfaceType2A cone surface.
CylinderSurfaceType1A cylindrical surface.
EllipticalConeSurfaceType6An elliptical cone surface.
EllipticalCylinderSurfaceType5An elliptical cylinder surface.
NurbsSurfaceType7A NURBS surface.
PlaneSurfaceType0A planar surface.
SphereSurfaceType3A spherical surface.
TorusSurfaceType4A torus surface.

 

All surfaces (geometries) other than NurbsSurfaceType are considered procedural and are defined by:

(x,y,z) =𝒮(u,v), where 𝒮() is an analytical  function of class ⁿ  (although, one point on ConeSurfaceType is ... a black sheep here)

NurbsSurfaceType, in essence, could also be considered procedural, but it is defined piecewise (on segments) by polynomials. It means that on segments' boundaries, the condition  might not be fully satisfied (depending upon the order of polynomial and) ... and this is the difference.

The flag procedural or not can be constructed as:

isProcedural = surface_var.surfaceType < 7

 

Regards

MichaelT

 

MichaelT
Message 5 of 5
CADacombs
in reply to: MichaelT_123

By "procedurally-calculated", I am referring to geometry discussed in this thread:

https://forums.autodesk.com/t5/fusion-360-design-validate/what-is-the-purpose-of-converting-this-nur...

 

"Analytic" and "procedurally calculated" are distinguished here:

Fusion 360 Help | BRepConvertOptions Enumerator | Autodesk

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report