public class Import extends Polyhedron
Represents an import operation in OpenSCAD. Although OpenSCAD supports several formats in the import operation, in JavaSCAD only binary STL files are supported as of now.
The file will be read and the boundaries of the object are determined based on the content of the file, so aligning to this object will work exactly the same way as any other object in JavaSCAD.
triangles| Modifier | Constructor and Description |
|---|---|
|
Import(File file)
Instantiate this import object with the given file.
|
protected |
Import(File file,
byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
protected Abstract3dModel |
innerCloneModel() |
protected SCAD |
innerToScad(IColorGenerationContext context)
Generates the OpenSCAD representation of the model without.
|
getModelBoundaries, toInnerCSGgetChildrenModels, innerSubModel, isPrimitiveaddModel, addModelTo, align, align, align, align, align, annotate, background, cloneModel, debug, findAnnotatedModel, getBoundaries, getTag, isBackground, isDebug, isMoved, isRotated, move, moves, moves, moves, moves, rotate, rotates, rotates, round, subModel, subtractModel, toCSG, toCSG, toScad, withTagpublic Import(File file) throws IOException
file - the file to be readIOException - if there is any I/O error reading the fileprotected Import(File file, byte[] bytes)
protected Abstract3dModel innerCloneModel()
innerCloneModel in class Polyhedronprotected SCAD innerToScad(IColorGenerationContext context)
Abstract3dModelinnerToScad in class PolyhedronCopyright © 2014–2020, Printing in 3D. All rights reserved.