greetings thank you.
In my sample I cannot choose the correct face, in a cube if I touch face 1 (it is shown on the screen as the one in front), face 2 is selected. Through the case I selected the correct face, how to improve this, thank you.
B4X:
If Action=1 Then 'Tuoch UP
Dim Pt As Int = P3D.PointClick(X,Y,True)
End If
If Pt>-1 Then
Dim pnt As Type_Polygon=P3D.ListObject.Get(Pt-1)
' ll1t.Text=$"Touch Face ID:${pnt.ID} - N.Vertice: ${pnt.ListVertices.Size}"$
Log($"Touch Face ID:${pnt.ID} - N.Vertice: ${pnt.ListVertices.Size}"$)
End If
B4X:
If Action=1 Then 'Tuoch UP
Dim Pt As Int = P3D.PointClick(X,Y,True)
End If
Case 1
Pt=4
Case 2
Pt=1
Case 3
Pt=2
Case 4
Pt=3
If Pt>-1 Then
Dim pnt As Type_Polygon=P3D.ListObject.Get(Pt-1)
' ll1t.Text=$"Touch Face ID:${pnt.ID} - N.Vertice: ${pnt.ListVertices.Size}"$
Log($"Touch Face ID:${pnt.ID} - N.Vertice: ${pnt.ListVertices.Size}"$)
End If
Other another thing , how used P3D.setColor