深入了解 Open CASCADE 中的 SelectMgr_EntityOwner 和高亮功能
最编程
2024-04-27 10:05:16
...
@版权声明:本文为版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出,
本文链接https://www.jianshu.com/p/4b67596f5ac0
如有问题, 可邮件(yumxuanyi@qq.com)咨询。
关键字:OpenCascade、SelectMgr_EntityOwner、Sensitive Entity
Entity Owner
Entity Owner对象中存储了
- SelectMgr_SelectableObject *mySelectable; //表示可选择对象的指针 也就是说EntityOwner连接着该可选对象
- 当前Sensitive entity显示的信息。
每一个Entity Owner只负责高亮显示它本身。其实内部只是重新计算了Sensitive entity的显示。
1. 定义CMyEdgeOwner 类
通过继承SelectMgr_EntityOwner类来创建我们自己的CMyEdgeOwner 。
该CMyEdgeOwner 用于高亮显示一个边(线段),比如一个立方体盒子的一条边。
class CMyEdgeOwner ::public SelectMgr_EntityOwner
{
DEFINE_STANDARD_RTTIEXT(CMyEdgeOwner ,SelectMgr_EntityOwner)
public:
//!@ theSelObj为必须传入的可选择对象
//!@ startPoint endPoint为为了重新计算其外观表现闯入的线段的两个端点
Standard_EXPORT CMyEdgeOwner (const Handle(SelectMgr_SelectableObject) &theSelObj,gp_Pnt startPoint,gp_Pnt endPoint,const Standard_Integer aPriority = 2) ;
virtual ~CMyEdgeOwner(void);
protected://需要实现的三个虚函数如下
//用于根据给定的模式计算并进行高亮 主要在该方法中重新计算了其显示外观
Standard_EXPORT virtrual void HilightWithColor(const Handle(PrsMgr_PresentationManager3d) &thePM,const Handle(Prs3d_Drawer)& theStyle,const Standard_Integer theMode =2) Standard_OVERRIDE;
//取消高亮显示
Standard_EXPORT virtrual void Unhilight(const Handle(PrsMgr_PresentationManager) &aPM,const Standard_Integer aMode =0) Standard_OVERRIDE;
//当PrsMgr_PresentationManager aPM根据高亮显示模式成功高亮选择对象后 将返回true
Standard_EXPORT virtrual void IsHilighted(const Handle(PrsMgr_PresentationManager) &aPM,const Standard_Integer aMode =0) Standard_OVERRIDE;
private:
gp_Pnt myStartPoint;//起点
gp_Pnt myEndPoint;//终点
Handle(PrsMgr_PresentableObject) myPresentation;//最终选择后的高亮显示在这里计算
};
DEFINE_STANDARD_HANDLE(CMyBoxEdgeOwner,SelectMgr_EntityOwner)
2. 实现CMyEdgeOwner 类
IMPLEMENT_STANDARD_RTTIEXT(CMyEdgeOwner ,SelectMgr_EntityOwner)
CMyEdgeOwner::CMyEdgeOwner (const Handle(SelectMgr_SelectableObject) &theSelObj,gp_Pnt startPoint,gp_Pnt endPoint,const Standard_Integer aPriority ):SelectMgr_EntityOwner(theSelObj.operator->(),aPriority),myStartPoint(startPoint),myEndPoint(endPoint)
{
myPresentation = new CMyEdgePresentation(startPoint,endPoint);
this->myIsSelected = Standard_False;
this->myFormDecomposition = Standard_True;
}
//用于根据给定的模式计算并进行高亮 主要在该方法中重新计算了其显示外观
void CMyEdgeOwner::HilightWithColor(const Handle(PrsMgr_PresentationManager3d) &thePM,const Handle(Prs3d_Drawer)& theStyle,const Standard_Integer theMode )
{
theStyle->SetColor(Quantity_NOC_YELLOW);//设置高亮显示颜色
myPresentation->SetAttributes(theStyle);
thePM->Color(myPresentation,theStyle,theMode,mySelectable);//这一句用具计算并高亮显示我们的边
}
//取消高亮显示
void CMyEdgeOwner::Unhilight(const Handle(PrsMgr_PresentationManager) &aPM,const Standard_Integer aMode )
{
if(myPresentation.IsNull() || !myFromDecompositon)
{
aPM->UnHighlight(Selectable());
}
else
{
aPM->UnHighlight(myPresentation);
}
}
//当PrsMgr_PresentationManager aPM根据高亮显示模式成功高亮选择对象后 将返回true
void CMyEdgeOwner::IsHilighted(const Handle(PrsMgr_PresentationManager) &aPM,const Standard_Integer aMode )
{
return aPM->IsHighlited(myPresentation,0);
}
3. 定义CMyEdgePresentation 类
通过继承PrsMgr_PresentableObject类来创建我们自己的CMyEdgePresentation 。
该CMyEdgePresentation 用于计算高亮显示的的线段,其实就是计算覆盖到原来的对象上的另外一条线。
class CMyEdgePresentation::public PrsMgr_PresentableObject
{
DEFINE_STANDARD_RTTIEXT(CMyEdgePresentation,PrsMgr_PresentableObject)
public:
//!@ startPoint endPoint为为了重新计算其外观表现闯入的线段的两个端点
Standard_EXPORT CMyEdgePresentation(gp_Pnt startPoint,gp_Pnt endPoint) ;
virtual ~CMyEdgePresentation(void);
protected://需要实现如下虚函数
//用于根据给定的模式计算并进行高亮 主要在该方法中重新计算了其显示外观
Standard_EXPORT virtrual void Compute(const Handle(PrsMgr_PresentationManager3d) &thePM,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer theMode =0) Standard_OVERRIDE;
private:
gp_Pnt myStartPoint;//起点
gp_Pnt myEndPoint;//终点
}
4. 实现PrsMgr_PresentableObject 类
IMPLEMENT_STANDARD_RTTIEXT(CMyEdgePresentation,PrsMgr_PresentableObject)
CMyEdgePresentation::CMyEdgePresentation(gp_Pnt startPoint,gp_Pnt endPoint,const Standard_Integer aPriority ):myStartPoint(startPoint),myEndPoint(endPoint)
{
}
//用于根据给定的模式计算并进行高亮 主要在该方法中重新计算了其显示外观
void CMyEdgePresentation:: Compute(const Handle(PrsMgr_PresentationManager3d) &thePM,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer theMode )
{
aPresentation->Clear(Standard_True);//清除结构中的所有组,用于创建临时的高亮显示对象
Staandard_Integer maxVertexsCount = 2;//点的数量
Standard_Integer maxEdges = 2;//边的数量
Standard_Boolean hasEdgeColor = Standard_True;
Handle(Graphic3d_ArrayOfSegments) anSegmentsArray = new Graphic3d_ArrayOfSegments(maxVertexsCount ,maxEdges ,hasEdgeColor );
anSegmentsArray ->AddVertex(this->_startPoint);
anSegmentsArray ->AddVertex(this->_endPoint);
anSegmentsArray ->AddEdge(1);
anSegmentsArray ->AddEdge(2);
Handle(Graphic3d_Group) hEdgeGroup = Prs3d_Root::CurrentGroup(aPresentation);//创建一个新的group
hEdgeGroup ->AddPrimitiveArray(anSegmentsArray );//在Group中添加对象
hEdgeGroup->SetGroupPrimitivesAspect(myDrawer->PointAspect()->Aspect());//设置颜色属性
}
5. 理解继承关系
AIS_InteractiveObject 继承于 SelectMgr_SelectableObject
SelectMgr_SelectableObject 继承于 PrsMgr_PresentableObject
也就是说:一个可交互对象既是一个可选择对象也是一个可显示对象。
所有我们可以通过继承于AIS_InteractiveObject或SelectMgr_SelectableObject
来创建自己的可交互对象。
我们创建的可交互对象必须重写以下三个方法。
- void ComputeSelection(const Handle(SelectMgr_Selection) &aSelection,const Standard_Integer aMode);
该方法根据不同的选择模式来创建选择集。一种aMode对于一个Selection.
我们所需要做的就是判断模式,并往aSelection中添加对象
void CMyBox::ComputeSelection(const Handle(SelectMgr_Selection) &aSelection,const Standard_Integer aMode)
{
switch(aMode)
{
case 0 ://0时将选择整个盒子
{
//看文档 由于0模式是选择整个盒子 所以所有的面将指向同一个EntityOwner
//也就是说EntityOwner将负责显示所有的面
Handle(SelectMgr_EntityOwner) anOwner = new SelectMgr_EntityOwner(this.0);
for(Standard_Integer i = 0;i< 6 ;i++)//一个盒子有六个面
{
TColgp_Array1OfPnt facePointsArray(1,4);//一个面由四个点组成
facePointsArray.SetValue(1,facePoints[i][0]);//下面依次添加面的四个点到集合中
facePointsArray.SetValue(2,facePoints[i][1]);//下面依次添加面的四个点到集合中
facePointsArray.SetValue(3,facePoints[i][2]);//下面依次添加面的四个点到集合中
facePointsArray.SetValue(4,facePoints[i][3]);//下面依次添加面的四个点到集合中
Handle(Select3D_SensitiveFace) hSensitiveFace = new Select3D_SensitiveFace(anOwner ,facePointArray,Select3D_TOS_BOUNDARY);
theSelection->Add(hSensitiveFace);
}
}break;
case 1 ://1时将分别选择每个面 这里高亮显示用第二种方式
{
//每个面都对应一个它自己的EntityOwner 这个EntityOwner负责高亮显示它自己。
//也就是创建一个i额临时的面覆盖到原来的面上
//具体实现代码这里不提供该方法的实现
this->SetAutoHilight(Standard_False);//这里设置为FALSE将自己显示自己 见下面 [6. 深入理解高亮显示](深入理解高亮显示)部分
for(Standard_Integer i= 0;i<6;i++)
{
Handle(SelectMgr_EntityOwner) anOwner = new SelectMgr_EntityOwner(this.i+1);//注意第二个参数priority这里用来标记是哪一个面
facePointsArray.SetValue(1,facePoints[i][0]);//下面依次添加面的四个点到集合中
facePointsArray.SetValue(2,facePoints[i][1]);//下面依次添加面的四个点到集合中
facePointsArray.SetValue(3,facePoints[i][2]);//下面依次添加面的四个点到集合中
facePointsArray.SetValue(4,facePoints[i][3]);//下面依次添加面的四个点到集合中
Handle(Select3D_SensitiveFace) hSensitiveFace = new Select3D_SensitiveFace(anOwner ,facePointArray,Select3D_TOS_BOUNDARY);
theSelection->Add(hSensitiveFace);
}
}break;
case 2://2时将选择每条边
{
//共有12条边 在选择边的模式中每一条边都是一个Sensitive Entity 都关联了一个自己的Entity Owner
//每一个EntityOwner负责高亮显示它自己
for(Standard_Integer i = 0;i< 12;i++)
{
gp_Pnt startPoint = this->_edge[i].StartPoint();//第i条边的起点
gp_Pnt endPoint = this->_edge[i].EndPoint();//第i条边的终点
Handle(CMyEdgeOwner) edgeOwner = new CMyEdgeOwner(this,startPoint ,endPoint ,2);
this->SetAutoHilight(Standard_True);//设置为自动高亮显示,
//当设置为Flase时将调用本类中用户重写的HilightOwnerWithColor 负责自己的高亮的显示。
//实例化Sensitive Entity
Handle(Select3D_SensitiveSegment) hSensitiveSegment = new Select3D_SensitiveSegment(edgeOwner ,startPoint ,endPoint );
aSelection->Add(hSensitiveSegment );//将SensitiveEntity添加到选择集
hSensitiveSegment ->BVH();
}
}break;
}
}
- void Compute(const Handle(PrsMgr_PresentationManager3d) & thePrsMgr,const Handle(Prs3d_Presentation) &thePrs,const standard_Integer presentMode = 0);
该方法将根据不同的显示模式presentMode 来显示对象。
所谓显示,就是在structure中中创建一个新的group,再往该gruop中添加不同的Graphic3d基本对象。
void CMyBox::Compute(const Handle(PrsMgr_PresentationManager3d) & thePrsMgr,const Handle(Prs3d_Presentation) &thePrs,const standard_Integer presentMode)
{
switch(presentMode)
{
case 0: //显示整个盒子
{
//代码省略
}break;
case 1://线框模式 显示各个边
{
thePrs->Clear();//清理Graphic3d_Structure中所有的Gruop
thePrs->SetDisplayPriority(1);//设置显示优先级为1
Standard_Integer maxVertexsCount = 8;//一个盒子8个顶点
Standard_Integer maxEdges= 24;//一个盒子12个边 一个边由连个点组成 所有有24个点组成边
Standard_Boolean hasEdgeColor = Standard_True;
//创建爱你边的数组
Handle(Graphic3d_ArrayOfSegments) anSegmentArray = new Graphic3d_ArrayOfSegments(maxVertexsCount,maxEdges,hasEdgeColor);
//下面就是一系列网anSegmentArray 中添加点和边 具体参考文档 有多种方法 为节约点的数量可以通过索引的方式创建边
for(Standard_Integer i=0;i<maxVertexsCount;i++)//总共只有八个点
{
anSegmentArray->AddVertex(vertexs[i],i*20);//由于hasEdgeColor 设置为True所有这里要给颜色 否则就不用给
}
//下面就是通过索引点来添加12个面
//以下只事例 只添加两条边注意 添加后点的索引是从1开始的
anSegmentArray->AddEdge(1); //第一条边
anSegmentArray->AddEdge(2);
anSegmentArray->AddEdge(2); //第二条边
anSegmentArray->AddEdge(6);
...//这里省略其余10条边的设置
//下面设置边的颜色属性
Handle(Graphic3d_AspectLine3d) lineAspece = new Graphic3d_AspectLine3d(Quantity_NOC_WHITE,Aspect_TOL_SOLID,1);
//下面创建一个新的gruop
Handle(Graphic3d_Group) hEdgeGroup = Prs3d_Root::CrurentGroup(thePrs);
//往group中添加对象
hEdgeGroup->AddPrimitiveArray(anSegmentArray);
hEdgeGroup->SetGruopPrimitivesAspect(lineAspect);//设置线的属性
}break;
case 2: //显示所有的顶点
{
thePrs->Clear();//清理Graphic3d_Structure中所有的Gruop
thePrs->SetDisplayPriority(2);//设置显示优先级为2
Standard_Integer maxVertexsCount = 8;//一个盒子8个顶点
Handle(Graphic3d_ArrayOfPoints) anPointsArray = new Graphic3d_ArrayOfPoints(maxVertexsCount);
for(Standard_Integer i=0;i<maxVertexsCount;i++)//总共只有八个点
{
anPointsArray ->AddVertex(vertexs[i]);
}
//下面创建一个新的gruop
Handle(Graphic3d_Group) hGroup2 = Prs3d_Root::CrurentGroup(thePrs);
//往group中添加对象
hGroup2 ->AddPrimitiveArray(anPointsArray );
myDrawer->PointAspect()->Aspect()->SetType(Aspect_TypeOfMarker::Aspect_TOM_BALL);
hEdgeGroup->SetGruopPrimitivesAspect(myDrawer->PointAspect()->Aspect());//设置点的属性
}break;
}
}
6. 深入理解高亮显示
- 由以上过程可知,当我们使用AutoHighlight时(this->SetAutoHilight(Standard_True)时),表示设置该对象为自动高亮显示,这时就要创建新的EntityOwner, 而EntityOwner又要负责创建一个新的显示对象来覆盖在原对象表面 从而实现的所谓的高亮显示。
- 这种过程相当冗余,而且不高效。
- OCCT提供了另外一种模式,由我们自己的对象来显示自己 而不是通过EntityOwner.
此时有两个步骤:
- 设置 AutoHilight属性为False
this->SetAutoHilight(Standard_False);- 重写 IsAutoHilight()、HilightOwnerWithColor()、HilightSelected()、ClearSelected()方法
- 在重写HilightOwnerWithColor时,该函数的参数并没有直接提供Prs3d_Presentatioin。但是可以通过其内置的方法GetHilightPresentation(const Handle(PrsMgr_PresentationManager3d)& thePM)来获取该显示Structure。代码如下:
void CMyBox::HilightOwnerWithColor(onst Handle(PrsMgr_PresentationManager3d)& thePM,const Handle(Prs3d_Drawer)& theStyle,const Handle(SelectMgr_EntityOwner)&theOwner)
{
//获取用于高亮显示的Graphic3d_Structure
Handle(Prs3d_Presentation) highlightPresentation = GetHilightPresentation(thePM);
if(HasPresentation())
{
highlightPresentation->SetTransformPersistence(Presentation()->TransformPersistence());
}
if(theOwner.IsNull())
{
return;
}
highlightPresentation->Clear();//先清除
//下面就是获取Group,往Group中添加基本图像对象了
Handle(Graphic3d_Group) aHilightGroup = Prs3d_Root::CurrentGroup(highlightPresentation );//获取Graphic3d_Group
Handle(Graphic3d_AspectFillArea3d) aTrangleAspect = new Graphic3d_AspectFillArea3d(...)//设置面的填充样式
//由于是绘制面 所以往Gruop中添加Graphic3d_ArrayOfTrangles对象
//对于选择的是哪一个面可以通过theOwner的Priority属性来判断
//theOwner的Priority属性在ComputeSelection中设置
switch(theOwner->Priority())//通过Priority来判断是哪一个面
{
case 1 ://表示前面
{
Handle(Graphic3d_ArrayOfTrangles) myFrontFace = ...//这里表示需要生成面
...//实例化myFrontFace 可以定义为一个字段
aHilightGroup ->AddPrimitiveArray(myFrontFace);
aHilightGroup ->SetGroupPrimitivesAspect(aTrangleAspect );
break;
}
case 2 ://表示后面
...//同上补全
break;
...
case 6://表示底面
...//同上补全
break;
}
highlightPresentation ->SetIsForHighlight(Standard_True);
if(thePM->IsImmediateModeOn())
{
thePM->AddToImmediateList(highlightPresentation );
}
}
推荐阅读
-
深入了解 Open CASCADE 中的 SelectMgr_EntityOwner 和高亮功能
-
Java 类加载器的作用 - 简介:类加载器是 Java™ 中一个非常重要的概念。类加载器负责将 Java 类的字节码加载到 Java 虚拟机中。本文首先详细介绍了 Java 类加载器的基本概念,包括代理模型、加载类的具体过程和线程上下文类加载器等。然后介绍了如何开发自己的类加载器,最后介绍了类加载器在 Web 容器和 OSGi™ 中的应用。 类加载器是 Java 语言的一项创新,也是 Java 语言广受欢迎的重要原因之一。它允许将 Java 类动态加载到 Java 虚拟机中并执行。类加载器从 JDK 1.0 开始出现,最初是为了满足 Java Applets 的需求而开发的,Java Applets 需要从远程位置下载 Java 类文件并在浏览器中执行。现在,类加载器已广泛应用于网络容器和 OSGi。一般来说,Java 应用程序的开发人员不需要直接与类加载器交互;Java 虚拟机的默认行为足以应对大多数情况。但是,如果遇到需要与类加载器交互的情况,而您又不太了解类加载器的机制,就很容易花费大量时间调试异常,如 ClassNotFoundException 和 NoClassDefFoundError。本文将详细介绍 Java 的类加载器,帮助读者深入理解 Java 语言中的这一重要概念。下面先介绍一些基本概念。 类加载器的基本概念 顾名思义,类加载器用于将 Java 类加载到 Java 虚拟机中。一般来说,Java 虚拟机以如下方式使用 Java 类:Java 源程序(.java 文件)经 Java 编译器编译后转换为 Java 字节代码(.class 文件)。类加载器负责读取 Java 字节代码并将其转换为 java.lang 实例。每个实例都用来表示一个 Java 类。通过该实例的 newInstance 方法创建该类的对象。实际情况可能更加复杂,例如,Java 字节代码可能是由工具动态生成或通过网络下载的。 基本上,所有类加载器都是 java.lang.ClassLoader 类的实例。下面将详细介绍这个 Java 类。 java.lang.ClassLoader 类简介 java.lang.ClassLoader 类的基本职责是根据给定类的名称为其查找或生成相应的字节码,然后根据这些字节码定义一个 Java 类,即 java.lang.Class 类的实例。除此之外,ClassLoader 还负责加载 Java 应用程序所需的资源,如图像文件和配置文件。不过,本文只讨论它加载类的功能。为了履行加载类的职责,ClassLoader 提供了许多方法,其中比较重要的方法如表 1 所示。下文将详细介绍这些方法。 表 1.与加载类相关的 ClassLoader 方法
-
41 个下载免费 3D 模型的最佳网站-使用说明:使用权限可能因型号而异。因此,在下载文件之前,请仔细检查每个下载页面上的许可证和使用权限。 17. Clara.io Clara.io 是一个创建 3D 内容的全球平台,也是一个培养新 3D 艺术家的社区。Clara.io 提供+100,000个免费的3D模型,包括OBJ,Blend,STL,FBX,DAE,Babylon.JS,Three.JS格式,用于 Clara.io,Unity 3D,Blender,Sketchup,Cinema 4D,3DS Max和Maya。 使用说明:免费,标准和专业帐户仅供个人使用,如果您需要将 clara.io 用于商业用途,请与销售团队联系。 18. 3DExport 3DExport是一个市场,您可以在其中购买和销售用于CG项目的3D模型,3D打印模型和纹理。它提供15 +不同的3D格式供下载,如3DS MAX(.max),Cinema4D(.c4d),Maya(.mb,.ma),Lightwave(.lwo),Softimage(.xsi),Wavefront OBJ(.obj),Autodesk FBX(.fbx)等。它还提供15种不同的语言! 使用说明:免费下载仅供个人和非商业用途。 19. 3D Warehouse 3D Warehouse是一个开放的库,允许用户共享和下载SketchUp 3D模型,用于建筑,设计,施工和娱乐!任何人都可以免费制作,修改和重新上传内容到3D仓库,您可以找到任何您能想到的东西,如家具,电子产品,室内产品等。 使用说明:3D Warehouse中的所有模型都是免费的,因此任何人都可以下载文件以用于SketchUp甚至其他软件,如AutoCAD,Revit和ArchiCAD。 20. CadNav.com CadNav是CGI平面设计师和CAD / CAM / CAE工程师的在线3D模型库,我们提供超过50000 +免费3D模型和CAD模型下载。在CadNav网站上,您可以下载高质量的多边形网格3D模型,3D CAD实体对象,纹理,Vray材料,3D作品,CAD图纸等。 使用说明:免费下载仅供个人和非商业用途。 21. All3dfree.net 就像网站名称一样,它提供免费的3D模型,还包括Vray材料,CAD块,2d和3d纹理集合,无需注册即可免费下载。它是不断更新的,因此您可以查找或请求3DS,MAX,C4D,skp,OBJ,FBX,MTL等格式的模型。 使用说明:所有资源均不允许用于商业用途,否则您将承担责任。 22. Hum3D 自2005年以来,Hum3D帮助来自3多个国家的80D艺术家节省3D建模时间,并制作逼真的3D模型,用于电影,视频游戏,AR应用程序和可视化。所有模型均由首席3D艺术家进行验证,他们检查其是否符合专业要求和最新的3D建模标准。 使用说明:免费下载仅供个人和非商业用途。 23. Artist-3D.com 艺术家-3D 库存的免费 3D 模型下载按通用类别排序。它为人体解剖学、汽车、家具、火箭、卫星等模型提供 AutoDesk 3DS Max 格式。您还可以在浏览他们的网站时找到教程和类似类型的建模。 使用说明:使用权限可能因型号而异。因此,在下载文件之前,请仔细检查每个下载页面上的许可证和使用权限。 24. Free the models 就像本网站的标题一样,它为3d应用程序和3d游戏引擎提供免费的内容模型。您可以为您的任何项目找到许多有趣且有用的模型!它提供3ds,wavefront,bryce,poser,lightwave,md2和unity3d格式的模型。还有一个很棒的纹理集合,可以在您最喜欢的建模和渲染程序中使用。 使用说明:您从这里下载的所有内容都可以免费使用,除非它不能包含在另一个免费的网络或CD收藏中,也不能单独出售。否则,您可以在商业游戏,3D应用程序或渲染作品中使用它。您不必提供信用,但如果您这样做,那就太好了。 25. Resources.blogscopia 本网站由一家名为Scopia的公司创建。他们制作3D图像和视频,您可以找到许多为CGI工作的信息架构设计的模型,所有这些都可以在现实生活中使用。您可以免费下载它们,但是,如果您想一次下载它们,您可以支付 3 到 9 欧元。 使用说明:您可以免费下载模型部分的所有文件。每个压缩文件都包含您也可以在此处找到的许可证。基本上,您可以对文件执行任何操作。唯一的限制是不归属于Scopia的重新分发。 26.ambientCG 1000+公共领域PBR材料适合所有人!环境CG是使用许多不同的方法和资产类型创建的,例如照片纹理(PBR),贴花(PBR),图集(PBR),照片纹理(普通),物质存档(SBSAR),雕刻画笔,3D模型和地形。您可以在所有项目中*使用它们! 使用说明:在 ambientCG 上提供下载的所有 PBR 材料、画笔、照片和 3D 模型均根据知识共享 CC0 1.0 通用许可提供。您可以复制、修改、分发和执行作品,即使是出于商业目的,也无需征得许可。信用将不胜感激。 不要满足于平庸的大理石纹理 - 立即使用我们的免费PBR大理石纹理升级您的3D设计。 27.Pixar One Twenty Eight 这是一个提供官方动画行业经典纹理的网站:皮克斯,创建于 1993 年,该纹理库包括 128 个重复纹理,现在免费提供。 它包含您来到的纹理,包括砖块和动物毛皮。肯定会有一些你可以使用的东西。 使用说明:皮克斯动画工作室的《Pixar One Twenty Eight》根据知识共享署名4.0国际许可协议进行许可。即使出于商业目的,您也可以重新混合、调整和构建您的作品,只要您以相同的条款对新创作进行信用和许可。 访问数以千计的免费纹理并提升您的设计游戏 - 立即开始下载! 28. 3DXO 即使有近 620 个免费贴纸可供下载,3DXO 也不是最大的资源,但它的内容非常有用,不需要注册。无论是简单的墙壁或地板,还是一些奇怪的小东西,您都需要的纹理都可以在此网站上看到。 使用说明:使用权限可能因型号而异。因此,在下载文件之前,请仔细检查每个下载页面上的许可证和使用权限。 29. 3DModelsCC0 3DModelsCC0 与其他产品的不同之处在于它包含超过 250+ 个高质量 3D 模型,并且本网站上的所有内容都是免费的,完全是公共领域!使用我们的模型时无需信用或归属! 使用说明:为每个人提供完全免费的公共领域内容。 30.Sketch up texture club Sketchup Texture Club是一个非营利性的教育和信息门户网站,由3D社区的图像促进协会管理,特别强调面向学生和建筑和室内设计专业人士的可视化和渲染技术,以及所有正在学习3D可视化的人。 使用说明:您无需支付版税或使用费。纹理可以免费下载和使用。不允许将纹理作为竞争产品出售或重新分发,即使图像被修改也是如此。 31. FlippedNormals FlippedNormal 是一个提供计算机图形和 3D 资产的市场,您可以找到许多用于雕刻、建模、纹理、概念艺术、3D 模型、游戏资产或课程的高级资产! 使用说明:使用权限可能因型号而异。因此,在下载文件之前,请仔细检查每个下载页面上的许可证和使用权限。 32. NASA 3D NASA 3D网站是一个在线门户,提供与太空和各种NASA任务相关的大量三维模型和模拟。该网站是用户友好的,并提供有关每个型号的详细信息。该网站允许用户探索和下载几种不同格式的模型,包括 OBJ、STL 和 FBX,只需单击下载按钮即可。 使用说明: 要下载模型,只需单击模型页面上的下载按钮并选择所需的格式。 33. 3DAGOGO (Astroprint) 3DAGOGO 是一个提供广泛 3D 模型的网站,包括角色、车辆和建筑物。3DAGOGO 的独特功能之一是它专注于适合 3D 打印的模型,使其成为希望创建物理原型或模型的设计师的绝佳资源。要使用 3DAGOGO,设计师只需在网站上搜索他们正在寻找的模型类型,然后下载 STL 格式的文件。 使用说明: 要使用 3DAGOGO,只需搜索所需的 3D 模型类型并下载 STL 格式的文件。根据需要自定义模型,并确保在将其用于商业目的之前检查使用权限。 34. FreeCAD FreeCAD是一款了不起的3D建模软件,可让您在计算机上创建令人难以置信的3D设计。该软件可免费下载和使用,它提供了广泛的工具和功能,可用于创建用于各种目的的3D模型。 该网站易于浏览,您可以找到开始使用FreeCAD的所有必要信息。此外,该网站还提供一系列教程和指南,可帮助您了解 3D 建模的来龙去脉。 使用说明: 要下载模型,请访问网站并从库中选择所需的模型。该网站还提供了一系列使用该软件的教程和指南。 35. Pinshape Pinshape是一个提供一系列3D打印模型的网站。网站上提供的型号质量很高,因此您可以确保您的最终印刷产品看起来很棒。该网站提供了广泛的模型,包括从家居用品到小雕像和珠宝的所有物品。 但这还不是Pinshape所能提供的全部!该网站还允许用户上传和共享自己的3D模型。这意味着您不仅可以下载出色的模型,还可以通过分享自己的设计为社区做出贡献。此外,Pinshape 提供了一系列自定义选项,因此您可以调整和调整模型以满足您的特定需求。 使用说明: 要下载模型,请在网站上创建一个帐户,搜索所需的模型,然后单击下载按钮。该网站还为每种型号提供了一系列定制选项。 36.Yeggi Yeggi 提供了大量免费的 3D 模型,您可以下载各种格式的模型,例如 STL、OBJ 和 FBX。该网站易于使用,您可以按关键字、类别或特定网站搜索模型。 Yeggi 对于任何寻找 3D 模型的人来说都是一个很好的资源。它提供了大量的模型集合,从日常物品到复杂的机械,以及介于两者之间的一切。该网站的收藏量在不断增长,每天都有新的型号增加。 使用说明: 要下载模型,请在网站上搜索所需的模型,然后单击下载按钮。该网站还提供指向托管模型的原始网站的链接。 37. Open3DModel 来自开放3D模型的图像 Open3DModel具有各种类别的模型,包括建筑,车辆和角色。无论您需要建筑物,汽车还是人的3D模型,都可以在此网站上找到。 该网站易于浏览,您可以按类别或关键字搜索模型。每个模型都附带预览图像和详细信息,例如文件格式、大小和多边形数量。此信息可以帮助您选择适合您需求的模型。 使用说明: 要下载模型,请访问网站,从库中选择所需的模型,然后单击下载按钮。 使用最好的 3D 资产管理工具简化您的 3D 制作流程。立即试用它们,将您的 3D 项目提升到一个新的水平! 38. 3DExport 对于那些为其 3D 设计项目寻找 3D 模型、纹理和其他资源的人来说,该平台是一个很好的资源。该网站有大量模型可供选择,包括 3D 打印对象、游戏资产等。用户可以按类别、文件格式或价格范围浏览,以找到适合其项目的完美资源。此外,3DExport 还提供一系列教程和其他 3D 资源,以帮助用户提高技能并创建更令人印象深刻的设计。 使用说明: 要使用 3DExport,只需创建一个帐户并浏览可用型号。您可以按类别、格式和价格进行搜索,以找到所需的型号。找到喜欢的模型后,只需下载它并开始在您的项目中使用它。 39.Blend Swap Blend Swap是一个社区驱动的市场,提供与Blender软件兼容的各种免费3D模型。该平台允许用户共享和下载模型、纹理和其他资产,以便在他们的项目中使用。 使用说明: 创建免费帐户后,您可以浏览社区上传的大量3D模型。当您找到要使用的一个时,只需下载它并将其导入您选择的 3D 软件即可。 40. 3DShook 3DShook 是一个高级 3D 模型市场,提供一系列用于建筑、游戏等各个行业的高质量模型。该平台提供基于订阅的模型,具有不同的定价计划,允许用户访问一系列模型。 使用说明: 注册免费帐户后,只需浏览3D模型库,选择您喜欢的模型,然后以您需要的格式下载它们。 41. Smithsonian X 3D 史密森尼 X 3D 对于正在寻找历史文物和文物的高质量 3D 模型的设计师来说,这是一个独特的资源。该平台提供了大量3D模型,这些模型是根据史密森尼博物馆和研究中心中的真实物体扫描创建的。 使用说明: