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

# Segment

## Overview

`Segment` is a class in Aspose.3D FOSS for Java.

Segment of CompositeCurve.

This class provides 3 methods for working with Segment objects in Java programs.
Available methods include: `Segment`, `getCurve`, `getSameDirection`.
All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: `curve`, `sameDirection`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `curve` | `Curve` | Read | Gets the curve. |
| `sameDirection` | `boolean` | Read | Gets whether the segment has the same direction with the composite curve. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Segment(curve: Curve, sameDirection: boolean)` | Constructor. |
| `getCurve()` → `Curve` | Gets the curve. |
| `getSameDirection()` → `boolean` | Gets whether the segment has the same direction with the composite curve. |

## See Also

- [Aspose.3D — Enterprise API Reference](https://reference.aspose.com/3d/)