I would like to create STEP files of geometry that I have generated using custom numerical methods. Given a list of coordinates, I would like to be able to write these into a file with valid STEP format. To this end, I have been searching for an introduction to the STEP file format.
I can easily create STEP files using a variety of CAD applications, and I have been scrutinizing these files in an effort to understand their structure. A lot of it makes sense, but also a lot of it remains opaque. For instance consider the following item which describes a spline.
#38=B_SPLINE_CURVE_WITH_KNOTS('',5,(#43,#44,#45,#46,#47,#48),.UNSPECIFIED.,.F.,.F.,(6,6),(0.,1.),.UNSPECIFIED.);
I have been unable to find a description anywhere of what the nine arguments to this element are. I paid a substantial sum to ISO for something called SMRL_v6_rc1, and I got in return a massive database with entries such as:
ENTITY b_spline_curve_with_knots
SUBTYPE OF (b_spline_curve);
knot_multiplicities : LIST[2:?] OF INTEGER;
knots : LIST[2:?] OF parameter_value;
knot_spec : knot_type;
DERIVE
upper_index_on_knots : INTEGER := SIZEOF(knots);
WHERE
WR1: constraints_param_b_spline(degree, upper_index_on_knots, upper_index_on_control_points, knot_multiplicities, knots);
WR2: SIZEOF(knot_multiplicities) = upper_index_on_knots;
END_ENTITY;
Although the title is the same as the line from the STEP file, I don't see a list of nine arguments. I have a suspicion that I'm approaching this whole thing the wrong way, and so any comments or suggestions would be very much appreciated.
(Ideally I'm looking for a well written guide to the STEP file format, similar to the PDF Reference published by Adobe.)