Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using SharpGLTF.Materials;
using SolidWorks.Interop.sldworks;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DuSwToglTF.Extension
{
public static class IFace2Extension
{
public static MaterialBuilder GetMaterialBuilder(this IFace2 face)
{
if (!face.HasMaterialPropertyValues())
{
return null;
}
var materialValue = face.MaterialPropertyValues as double[];
return MaterialUtility.MaterialValueToMaterialBuilder( materialValue);
}
}
}
d49ffeb42This file is pinned to the selected release. Download the original to open it in your design tool.