-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
- SketchUp/LayOut Version: 21.1.279
- 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) }