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

×
熱門分類
微信掃碼登陸

QQ登錄

只需一步,快速開始

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

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

x
  請教一個(gè)關(guān)于SKP SDK mesh_helper SUMeshHelperGetVertexIndices返回個(gè)數(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.
我理解的就是會(huì)返回一個(gè)triangle的數(shù)組,然后每3個(gè)步長為一個(gè)數(shù)據(jù)單位,其中含有的為vertice/frontUV or back UV /normals   這樣的組成,其中frontUV or back UV 只會(huì)取其中某一個(gè)的值。
假如是一個(gè)正方形,并連接某一條斜邊,能夠組成0,1,2,3   這樣的值。能夠組成{0,1,2} , {0,2,3}2組三角形,triangle 的值就有6個(gè)。Triangle[0] = 0, triangle[1]=1, triangle[2]=2, triangle[3]=0, triangle[4]=2, triangle[3] = 3; 其中triangle[0 -2] 中,triangle [0]對(duì)應(yīng)vertice indices, triangle[1] 對(duì)應(yīng)UV  indices ,triangle[2]對(duì)應(yīng) normals   indices
現(xiàn)在我從某個(gè)mesh_helper 獲取到的個(gè)數(shù)為182個(gè),不能被3整除,是我的理解有問題,還是怎么的?求告知。
現(xiàn)主要做組裝unity Mesh 對(duì)象,想通過此API 獲取對(duì)應(yīng)值填充到mesh. triangles,如果有做過類似的,麻煩請告知,我這樣填充是否正確。

SUAPP AI

精彩評(píng)論

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

1

主題

3

帖子

0

紅寶石

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

Rank: 1

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

1

主題

3

帖子

0

紅寶石

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

Rank: 1

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

本版積分規(guī)則

feng271374203

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

  • 主題

  • 吧幣

  • 紅寶石

關(guān)閉

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

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