Boxshot suports lathe objects created by rotating a 2D curve around the vertical axis. You can create the curve using the built-in editor or load it from SVG file.
A lathe object has a lot of parameters that control its appearance:
Then comes the settings section with lots of parameters:
The last section is “Rotation” and it controls the rotation angle range. This allows you to create non-360° rotations, sectors etc.
You define materials in the curve editor window. Click a segment there, then type the material name at the top. You will then see these materials in the materials pane at the right.
Double-sided segments have two materials: the one you assigned and another one with the “back” suffix.
Materials with the same name are treated as the same material and therefore shown only once in the list.
You can load and save curves to SVG format using the “Presets” menu of the curve editor.
You can almost everything mentioned above using scripts. Curve loading is not supported, please let us know if you need this feature.
var m = scene.root.addMesh("lathe", "generator.lathe"); var g = m.generator; g.segments = 64; g.smoothness = 0.8; g.topCap = true; g.bottomCap = false; g.automaticAlignment = false; g.generateBackfaces = false; g.flipNormals = true; g.flipTextureMapping = true; g.hardVerticalEdges = false; g.hardHorizontalEdges = true; g.startAngle = 10; g.endAngle = 90; g.caps = true;