📄 threejs/Addons/Utils/LDrawUtils

File: LDrawUtils.md | Updated: 11/15/2025


title: LDrawUtils category: Addons layout: docs

LDrawUtils

Utility class for LDraw models.

Import

LDrawUtils is an addon, and must be imported explicitly, see Installation#Addons.

import { LDrawUtils } from 'three/addons/utils/LDrawUtils.js';

Constructor

new LDrawUtils()

Static Methods

.mergeObject( object : Object3D ) : Group

Merges geometries in the given object by materials and returns a new group object. Use on not indexed geometries. The object buffers reference the old object ones. Special treatment is done to the conditional lines generated by LDrawLoader.

object | The object to merge.
---|---

Returns: The merged object.

Source

examples/jsm/utils/LDrawUtils.js