---
title: "ObjMaterial"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.obj.mtl/objmaterial/"
product: "Aspose.CAD for Java"
description: "ObjMaterial class"
---


ObjMaterial class

## Constructors

| Constructor | Description |
| --- | --- |
| [ObjMaterial()](#ObjMaterial) | Initializes a new instance of the ObjMaterial class. |

## Methods

| Method | Description |
| --- | --- |
| [getName()](#getName) | Gets or sets the name. |
| [setName(String value)](#setName-java.lang.String) | Gets or sets the name. |
| [getDiffuse()](#getDiffuse) | Gets or sets the diffuse. |
| [setDiffuse(Obj3Values value)](#setDiffuse-com.aspose.cad.fileformats.obj.mtl.Obj3Values) | Gets or sets the diffuse. |

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

Initializes a new instance of the ObjMaterial class.

### getName() {#getName}
```java
public final String getName()
```

Gets or sets the name.

**Returns:** String - The name.

### setName(String value) {#setName-java.lang.String}
```java
public final void setName(String value)
```

Gets or sets the name.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | String | The name. |

### getDiffuse() {#getDiffuse}
```java
public final Obj3Values getDiffuse()
```

Gets or sets the diffuse.

**Returns:** Obj3Values - The diffuse.

### setDiffuse(Obj3Values value) {#setDiffuse-com.aspose.cad.fileformats.obj.mtl.Obj3Values}
```java
public final void setDiffuse(Obj3Values value)
```

Gets or sets the diffuse.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | Obj3Values | The diffuse. |

