Search Results for

    Show / Hide Table of Contents

    Interface IMaterials

    Gives access to methods to read and interact with materials and textures.

    Namespace: TopSolid.Kernel.Automating
    Assembly: cs.temp.dll.dll
    Syntax
    [AvailableSinceVersion(7, 17, 400, 0)]
    public interface IMaterials
    Remarks

    This interface is available since v7.17.

    Methods

    CloseTextureRetrievalSession(Guid)

    Closes a texture retrieval session.

    Declaration
    [AvailableSinceVersion(7, 17, 400, 0)]
    void CloseTextureRetrievalSession(Guid inSessionId)
    Parameters
    Type Name Description
    System.Guid inSessionId

    Identifier of the session to close.

    Remarks

    This method is available since v7.17.

    GetTextureImage(Guid, String)

    Gets the texture image of an image signature.

    Declaration
    [AvailableSinceVersion(7, 17, 400, 0)]
    TextureImage GetTextureImage(Guid inSessionId, string inImageSignature)
    Parameters
    Type Name Description
    System.Guid inSessionId

    Identifier of the session.

    System.String inImageSignature

    Image signature.

    Returns
    Type Description
    TextureImage

    Material image of the image signature.

    Remarks

    This method is available since v7.17.

    GetTextureSignatures(Guid, SCG.IEnumerable<String>, Int32, String)

    Gets texture signatures from all texture documents.

    Declaration
    [AvailableSinceVersion(7, 17, 400, 0)]
    SCG.List<string> GetTextureSignatures(Guid inSessionId, SCG.IEnumerable<string> inAlreadyKnownSignatures, int inMaxTextureSize, string inFolderPath)
    Parameters
    Type Name Description
    System.Guid inSessionId

    Identifier of the session.

    SCG.IEnumerable<System.String> inAlreadyKnownSignatures

    List of already known signatures.

    System.Int32 inMaxTextureSize

    Maximum size of the textures (width or length, in rectangle format).

    System.String inFolderPath

    Folder where the textures files will be saved.

    Returns
    Type Description
    SCG.List<System.String>

    Texture signatures.

    Remarks

    The file are saved in PNG format in the specified folder path, named signature.png.

    This method is available since v7.17.

    OpenTextureRetrievalSession()

    Opens a texture retrieval session.

    Declaration
    [AvailableSinceVersion(7, 17, 400, 0)]
    Guid OpenTextureRetrievalSession()
    Returns
    Type Description
    System.Guid

    Identifier of the opened session.

    Remarks

    This method is available since v7.17.

    In This Article
    • Mentions légales
    • C.G.U
    • Données personnelles

    Copyright © 2024 TopSolid Tous droits réservés