read_obj: Read a Wavefront OBJ file

View source: R/mesh_utils.R

read_objR Documentation

Read a Wavefront OBJ file

Description

Reads a Wavefront OBJ file (with optional UV coordinates and normals) and returns a scimesh mesh descriptor list with vertices, triangles, and optionally uv and normals.

Usage

read_obj(path)

Arguments

path

Path to the OBJ file.

Value

A mesh descriptor list.

Examples

## Not run: 
mesh <- read_obj("model.obj")
nrow(mesh$vertices)

## End(Not run)


scimesh documentation built on Aug. 9, 2026, 9:07 a.m.