As you can see in the attached image, I have a surface that appears to be a cylinder. However, it is actually defined as a NURBS surface.
When I export this model to a STEP file, I want it to be defined as a CYLINDRICAL_SURFACE according to the AP242 standard, not as a generic B_SPLINE_SURFACE.
What is the correct approach in RhinoCommon to ensure that a NURBS surface, which is geometrically a perfect cylinder, is recognized and exported as an analytic CYLINDRICAL_SURFACE?
With more study, i noticed it is not geometrically perfect as the process of conversion from SubD to NURBS.
NURBS must be calculated in third degree so maybe it’s defined as third degree of free surface.
Originally what i have is SubD and the vertices of SubD are located perfectly on the cylinderical surface.
And what i want to do is converting this SubD as brep whose surface is defined as CYLINDERICAL_SURFACE.
Long story short, you are making no sense here. Converting subD to NURBS is not going to give you an ‘exact’ anything. Please post files and what the heck this is all about, what are you exporting TO, again you are making zero sense.
To answer your actual question, you have no more control off the representation of objects being exported as .stp in RhinoCommon than you do exporting from Rhino manually. The exporter is a black box. Therefore the correct approach is to ensure you have cylindrical objects in your model before starting an export.
Objects created from the NURBS cylinder primitive appear to do what you want (I’m no STEP expert and don’t have any tools for interpreting STEP files, so confirm this for yourself). So do cylinders extruded from a circle.
A SUBD cylinder with the default 4 vertical faces will not do what you want. However one with 8 vertical faces does appear to do so.
@Young_Geon_Park
Did you read further down in the text for the STP export, it is defined as a cylindrical surface, see below. If I open this STP in SolidWorks, it detects the surface as cylindrical. This was generated using the cylinder in Rhino’s solid tools tab. cylinder solid ap242.stp (4.4 KB) cylinder solid.3dm (57.4 KB)