8/17/2023 0 Comments Multipatch pokecommunityThe image is in the texture file.ġ: Using pComReleaser As New ġ0: Dim pPt1 As ġ3: Dim pExGeomCol As IGeometr圜ollectionġ5: Dim pNewGeomPatchCreator As IGeneralMultiPatchCreatorġ6: Dim pGenInfo As IGeneralMultiPatchInfoġ8: Dim pMatList As IGeometryMaterialListĢ0: Dim iPatchType As ģ2: Dim iAction As m_eTextureAction = m_iTextureActionģ5: Dim pColTextureFiles As New StringCollectionģ9: Dim sFileDir As String = My.Ĥ2: Dim hPatchMatII As New Hashtable ' Patch index and it's material indexĤ3: Dim hTexturePts As New Hashtable ' Point index + texture ptĤ4: Dim hExistingTexturesII As New Hashtable ' Material No + nothingĤ6: Dim iGeomMatIndex As Integer ' The material index of iGeomNoĤ7: Dim bAssigned As Boolean = False ' Set to True if the texture is overwriting an existing textureĥ3: Dim iTotTextureVertexCount As Integer The image is tiled Xfreq x Yfreq across the geometry. Private Sub tileComponentGeometry(ByVal sLayer As String, ByVal sOID As String, _īyVal sTextureFile As String, ByVal sGeomNo As String, _īyRef sError As String, ByRef sMsg As String, ByVal sXfreq As String, _ Sorry for the line nos, I forgot to strip them out. I have used it to add images to the flags on the Sydney Harbour Bridge and the Anzac Bridge in Sydney. I read that document and like Allan I couldn't get it to work. The 3D modelling is moved to CityEngine and the 3D development of native ArcGIS seems over. I believe that is all you can get from Esri. The SetTextureWKSPoint calls really don't make any sense to me, I'm not sure what the parameters actually mean.ĭoes anyone have a simple code sample or a better explanation on what the calls in the IGeneralMultiPatchCreator interface actually mean? I need the image to stretch across the whole of the multipatch, but I can't quite work out what combination of values to feed in to make this happen. Which gives me a general idea, but neither code sample or the documentation gives me a good enough idea on how the interfaces work. The multipatch is basically made from a line with an upper and lower set of Z values.Ĭreating the multipatch isn't a problem, the problem comes when I try to texture it. I'm trying to make a fairly simple multipatch with an image textured onto it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |