7.14. cape-steptri2crv: Extract TRI file nodes on STEP curves

Convert a STEP file to a Plot3D multiple curve file by sampling curves from the STEP file at nodes from a surface triangulation. The result is a multiple-curve Plot3D curve file

Usage:
$ cape-steptri2crv STP [TRI [CRV]] [OPTIONS]
$ cape-steptri2crv --stp STP [--tri TRI] [--crv CRV] [OPTIONS]
Inputs:
  • STP: name of input STEP file

  • TRI: name of input TRI file (or STP with new extension)

  • CRV: name of output curve file (or STP with new extension)

Options:
-h, --help

Display this help message and exit

--stp STP

Use STP as input STEP file

--tri TRI

Use TRI as input triangulation file

--crv CRV

Use CRV as name of created output file

--atol ATOL

Maximum angle between node vector and curve tangent [60]

--dtol DTOL

Max dist. from node to curve as a fraction of edge length [0.05]

--ascii

Write text curves file instead of binary

--lr8

Write double-precision little-endian curves

--r8

Write double-precision big-endian curves

--lr4

Write single-precision little-endian curves

--r4

Write single-precision big-endian curves

--endian BO

Use non-default byte order, “big” or “little”

--sp

Write single-precision curve file (default is double)

-n N

Use a minimum of N segments per curve (defaults to 3)

--ds DS

Use a maximum arc length of DS on each curve

--dth THETA

Make sure maximum turning angle is below THETA

--da PHI

Make sure maximum turning angle times length of adjoining segments is less than or equal to PHI

Versions:
  • 2016-09-29 @ddalle: Version 1.0