---
Product: Aspose.3D
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/3d/java/compositecurve
---

# CompositeCurve

## Overview

`CompositeCurve` is a class in Aspose.3D FOSS for Java.
Inherits from: `Curve`.

A CompositeCurve is consisting of several curve segments.

This class provides 28 methods for working with CompositeCurve objects in Java programs.
Available methods include: `A3DObject`, `CompositeCurve`, `Curve`, `Entity`, `SceneObject`, `addSegment`, `findProperty`, `getBoundingBox`, `getColor`, `getEntityRendererKey`, `getExcluded`, `getName`, and 12 additional methods.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `boundingBox`, `color`, `entityRendererKey`, `excluded`, `name`, `parentNode`, and 4 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `segments` | `ArrayList<Segment>` | Read | The segments of the curve. |
| `color` | `Vector3` | Read/Write | Gets or sets the color of the line, default value is white(1, 1, 1). |
| `entityRendererKey` | `EntityRendererKey` | Read | Gets the entity renderer key for this entity. |
| `parentNode` | `Node` | Read/Write | Gets or sets the parent node. |
| `parentNodes` | `ArrayList<Node>` | Read | Gets the parent nodes. |
| `excluded` | `boolean` | Read/Write | Gets or sets the excluded. |
| `boundingBox` | `BoundingBox` | Read | Gets the bounding box. |
| `scene` | `Scene` | Read | Gets the scene. |
| `name` | `String` | Read/Write | Gets or sets the name. |
| `properties` | `PropertyCollection` | Read | Gets the properties. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getSegments()` → `ArrayList<Segment>` | The segments of the curve. |
| `CompositeCurve()` | Constructor of CompositeCurve. |
| `addSegment(curve: Curve, sameDirection: boolean)` | Add a new segment to current curve. |
| `addSegment(curve: Curve)` | Add a new segment to current curve. |
| `getColor()` → `Vector3` | Gets or sets the color of the line, default value is white(1, 1, 1). |
| `setColor(color: Vector3)` | Sets the color value. |
| `Curve()` | Constructor. |
| `getEntityRendererKey()` → `EntityRendererKey` | Gets the entity renderer key for this entity. |
| `Entity(name: String)` | The segments of the curve. |
| `getParentNode()` → `Node` | Returns the parent node. |
| `setParentNode(value: Node)` | Sets the parent node value. |
| `getParentNodes()` → `ArrayList<Node>` | Returns the parent nodes. |
| `getExcluded()` → `boolean` | Add a new segment to current curve. |
| `setExcluded(value: boolean)` | Sets the excluded value. |
| `getBoundingBox()` → `BoundingBox` | Add a new segment to current curve. |
| `SceneObject()` | Calls SceneObject on this CompositeCurve instance. |
| `SceneObject(name: String)` | Calls SceneObject(name) on this CompositeCurve instance. |
| `getScene()` → `Scene` | The segments of the curve. |
| `A3DObject()` | Calls A3DObject on this CompositeCurve instance. |
| `A3DObject(name: String)` | Calls A3DObject(name) on this CompositeCurve instance. |
| `getName()` → `String` | Returns the name. |
| `setName(name: String)` | Sets the name value. |
| `getProperties()` → `PropertyCollection` | Returns the properties. |
| `findProperty(name: String)` → `Property` | Calls findProperty(name) on this CompositeCurve instance. |
| `getProperty(name: String)` → `Object` | Calls getProperty(name) on this CompositeCurve instance. |
| `setProperty(name: String, value: Object)` | Sets the property value. |
| `removeProperty(name: String)` → `boolean` | Calls removeProperty(name) on this CompositeCurve instance. |
| `removeProperty(property: Property)` → `boolean` | Calls removeProperty(property) on this CompositeCurve instance. |

## See Also
- [Aspose.3D for Java — Enterprise API Reference](https://reference.aspose.com/3d/java/com.aspose.threed/compositecurve/)