public class Sphere extends Atomic3dModel
Abstract3dModel
, which means you
can use the convenient methods on spheres too.Constructor and Description |
---|
Sphere(double r)
Deprecated.
use the constructor with Radius parameter instead of double
|
Sphere(Radius r)
Creates the sphere with the given radius.
|
Modifier and Type | Method and Description |
---|---|
protected Boundaries3d |
getModelBoundaries() |
protected Abstract3dModel |
innerCloneModel() |
protected SCAD |
innerToScad(IColorGenerationContext context)
Generates the OpenSCAD representation of the model without.
|
protected CSG |
toInnerCSG(FacetGenerationContext context) |
getChildrenModels, innerSubModel, isPrimitive
addModel, 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, withTag
public Sphere(Radius r) throws IllegalValueException
r
- the radius to be usedIllegalValueException
- if the given radius is negative@Deprecated public Sphere(double r) throws IllegalValueException
r
- the radius to be usedIllegalValueException
- if the given radius is negativeprotected SCAD innerToScad(IColorGenerationContext context)
Abstract3dModel
innerToScad
in class Abstract3dModel
protected Boundaries3d getModelBoundaries()
getModelBoundaries
in class Abstract3dModel
protected Abstract3dModel innerCloneModel()
innerCloneModel
in class Abstract3dModel
protected CSG toInnerCSG(FacetGenerationContext context)
toInnerCSG
in class Abstract3dModel
Copyright © 2014–2020, Printing in 3D. All rights reserved.