---
title: "PrimitivesWithHoles"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.collada.fileparser.elements/primitiveswithholes/"
product: "Aspose.CAD for Java"
description: "The primitives with holes."
---


**Inheritance:** java.lang.Object, ColladaElement

The primitives with holes. Describes a primitives that contains one or more holes.

## Constructors

| Constructor | Description |
| --- | --- |
| [PrimitivesWithHoles()](#PrimitivesWithHoles) |  |

## Methods

| Method | Description |
| --- | --- |
| [getPrimitives()](#getPrimitives) | Gets or sets the primitives. |
| [setPrimitives(Primitives value)](#setPrimitives-com.aspose.cad.fileformats.collada.fileparser.elements.Primitives) | Gets or sets the primitives. |
| [getHoles()](#getHoles) | Gets or sets the holes. The hole element represents a hole in the polygon specified. There must be at least one hole element. |
| [setHoles(String[] value)](#setHoles-java.lang.String:A) | Gets or sets the holes. The hole element represents a hole in the polygon specified. There must be at least one hole element. |

### PrimitivesWithHoles() {#PrimitivesWithHoles}
```java
public PrimitivesWithHoles()
```

### getPrimitives() {#getPrimitives}
```java
public final Primitives getPrimitives()
```

Gets or sets the primitives.

**Returns:** Primitives

### setPrimitives(Primitives value) {#setPrimitives-com.aspose.cad.fileformats.collada.fileparser.elements.Primitives}
```java
public final void setPrimitives(Primitives value)
```

Gets or sets the primitives.

### getHoles() {#getHoles}
```java
public final String[] getHoles()
```

Gets or sets the holes. The hole element represents a hole in the polygon specified. There must be at least one hole element.

**Returns:** String[]

### setHoles(String[] value) {#setHoles-java.lang.String:A}
```java
public final void setHoles(String[] value)
```

Gets or sets the holes. The hole element represents a hole in the polygon specified. There must be at least one hole element.

