国产freexxxx性播放,囯产精品久久久久久久久久妞妞,а√最新版在线天堂鲁大师,丰满少妇被粗大猛烈进人高清 ,аⅴ资源天堂资源库在线

×
熱門分類
微信掃碼登陸

QQ登錄

只需一步,快速開始

馬上注冊,結(jié)交更多好友,享用更多功能,讓你輕松玩轉(zhuǎn)社區(qū)。

您需要 登錄 才可以下載或查看,沒有帳號?立即加入SketchUp吧! 微信掃碼登陸

x
  請教一個關(guān)于SKP SDK mesh_helper SUMeshHelperGetVertexIndices返回個數(shù)的問題  。我通過model 獲取到entities(所有的),然后通過entities獲取到face,通過face 獲取到mesh_helper,但是通過mesh_helper 里面的方法SUMeshHelperGetVertexIndices獲取到的count 182。我現(xiàn)在需要用到其返回值indices[].文檔中的原文解釋是:Retrieves the array of indices of thevertices of a triangle mesh object. The each element indexes into the arraysretrieved with SUMeshHelperGetVertices, SUMeshHelperGetFrontSTQCoords, SUMeshHelperGetBackSTQCoords and SUMeshHelperGetNormals. The elements are sorted so that every three elements (i.e.,stride of three) compose the indices to the three vertices of a triangle.
我理解的就是會返回一個triangle的數(shù)組,然后每3個步長為一個數(shù)據(jù)單位,其中含有的為vertice/frontUV or back UV /normals   這樣的組成,其中frontUV or back UV 只會取其中某一個的值。
假如是一個正方形,并連接某一條斜邊,能夠組成0,1,2,3   這樣的值。能夠組成{0,1,2} , {0,2,3}2組三角形,triangle 的值就有6個。Triangle[0] = 0, triangle[1]=1, triangle[2]=2, triangle[3]=0, triangle[4]=2, triangle[3] = 3; 其中triangle[0 -2] 中,triangle [0]對應(yīng)vertice indices, triangle[1] 對應(yīng)UV  indices triangle[2]對應(yīng) normals   indices;
現(xiàn)在我從某個mesh_helper 獲取到的個數(shù)為182個,不能被3整除,是我的理解有問題,還是怎么的?求告知。
現(xiàn)主要做組裝unity Mesh 對象,想通過此API 獲取對應(yīng)值填充到mesh. triangles,如果有做過類似的,麻煩請告知,我這樣填充是否正確。

SUAPP AI

精彩評論

文明上網(wǎng)理性發(fā)言、請文明用語

1

主題

3

帖子

0

紅寶石

SU入學(xué)(等級1)

Rank: 1

紅寶石
0
2#
feng271374203 2019-11-19 11:00:21
來個人指點(diǎn)下啊

1

主題

3

帖子

0

紅寶石

SU入學(xué)(等級1)

Rank: 1

紅寶石
0
3#
feng271374203 2019-11-20 18:31:25
已解決,理解有誤,len為SUMeshHelperGetNumTriangles 的返回值 乘以3 ,然后再獲取。并且需要處理單個的mesh不能將所有的vertice ,UV,normals    進(jìn)行累加后組裝。
高級模式
您需要登錄后才可以回帖 登錄 | 立即加入SketchUp吧! 微信掃碼登陸

本版積分規(guī)則

feng271374203

SU入學(xué)(等級1)

  • 主題

  • 吧幣

  • 紅寶石

關(guān)閉

站長推薦上一條 /1 下一條

發(fā)布主題 快速回復(fù) 返回列表 客服中心 搜索 官方QQ群