Skip to content

SUUVHelperGetFrontUVQ return a zero value for q #716

@MootoolsSoftware

Description

@MootoolsSoftware
  1. SketchUp/LayOut Version: 21.1.279
  2. OS Platform: Windows

mesh.zip
On the attached file, face with PID #7302967 return a zero value for q when calling :

SUVertexGetPosition(vertice, &pos);
SUUVHelperGetFrontUVQ(front_uv_helper, &pos, &uvq);
float u = uvq.u / uvq.q;
float v = uvq.v / uvq.q;

As a result computing UV values lead to infinite values.
The file has been created using Sketchup or come from 3DWarehouse.

Note that checking values using ruby lead to the same result.

model = Sketchup.active_model
[mesh.zip](https://github.com/SketchUp/api-issue-tracker/files/7235248/mesh.zip)

face = model.find_entity_by_persistent_id(7302967)
uvh = face.get_UVHelper(true, true)
uvqs = face.vertices.map { |v| uvh.get_front_UVQ(v.position) }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions