@Override
public boolean visitCylinderNode(CylinderNode node) {
String commonProperties = this.commonProperties(node);
Point position = node.getPosition();
String name = node.getId();
String positionString = "";
if (position != null) {
positionString = "\"x\":" + position.getX().toString() + ","
+ "\"y\":" + position.getY().toString() + "," + "\"z\":"
+ position.getZ().toString() + "";
}
Point distal = node.getDistal();
String distalString = "";
if (distal != null) {
distalString = "\"x\":" + distal.getX().toString() + "," + "\"y\":"
+ distal.getY().toString() + "," + "\"z\":"
+ distal.getZ().toString() + "";
}
Double radiusBottom = node.getRadiusBottom();
String radiusBottomString = "";
if (radiusBottom != null) {