- presetspec.put( ComponentPreset.MANUFACTURER, Manufacturer.getManufacturer("manufacturer"));
- presetspec.put( ComponentPreset.PARTNO, "partno");
- presetspec.put( ComponentPreset.DIAMETER, 20.0);
- presetspec.put( ComponentPreset.LINE_COUNT, 8);
- presetspec.put( ComponentPreset.LINE_LENGTH, 12.0);
- Material m = Material.newUserMaterial(Material.Type.SURFACE,"testMaterial", 2.0);
- presetspec.put( ComponentPreset.MATERIAL, m);
- m = Material.newUserMaterial(Material.Type.LINE,"testLineMaterial", 3);
- presetspec.put( ComponentPreset.LINE_MATERIAL, m);
+ presetspec.put(ComponentPreset.MANUFACTURER, Manufacturer.getManufacturer("manufacturer"));
+ presetspec.put(ComponentPreset.PARTNO, "partno");
+ presetspec.put(ComponentPreset.DIAMETER, 20.0);
+ presetspec.put(ComponentPreset.LINE_COUNT, 8);
+ presetspec.put(ComponentPreset.LINE_LENGTH, 12.0);
+ Material m = Material.newMaterial(Material.Type.SURFACE, "testMaterial", 2.0, true);
+ presetspec.put(ComponentPreset.MATERIAL, m);
+ m = Material.newMaterial(Material.Type.LINE, "testLineMaterial", 3, true);
+ presetspec.put(ComponentPreset.LINE_MATERIAL, m);