I was wondering what would be a good way to visualise some swept cross sections. I am not looking for the best visuals, just clean even if the rail curves are arbitrary NurbCurve
s. I am defining a cross section as a Curve
and sweeping it along a rail Curve
using Brep.CreateFromSweep() which results in a Brep array. I am then using the following code to preview wires and meshes respectively:
foreach (var brep in breps) {
args.Pipeline.DrawBrepWires(brep, args.Color);
}
foreach (var brep in breps) {
args.Pipeline.DrawBrepShaded(brep, args.Material);
}
The results for wires is satisfactory, even though I would like to be able not to have the intermediate cross-section visualisations along the curve length (image below).
For mesh visualisation this is even more pronounced, as you can see in the image below, there are a lot of intermediate cross-section visualisations along the curve.
What would be a better way to draw the visualisations? I have tried constructing meshes from brep surfaces/edges individually, drawing surfaces themselves etc.