Skip to content

DirectGeometry.fromGeometry with no faces gives empty position array while converting to BufferGeometry #12853

@mamun4122

Description

@mamun4122

I was trying to create BufferGeometry() from Geometry() which was created using VRML loader. But the problem is that when the geometry has only vertices without faces it returns empty position array. After analysis i found that the bug occurs because of in DirectGeometry.fromGeometry function vertices is not updated if there is no faces: Link

Three.js version
  • Dev
  • r88
  • r86

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions