xml version="1.0" encoding="utf-8" standalone="yes"12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/CommentsRSS.aspxzh-cnSun, 11 Aug 2019 14:45:29 GMTSun, 11 Aug 2019 14:45:29 GMTcnblogs12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/04/11/216344.html#216350eryareryarThu, 11 Apr 2019 12:00:00 GMThttp://www.fometaux.com/eryar/archive/2019/04/11/216344.html#216350谢谢

eryar 2019-04-11 20:00 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/04/11/216344.html#216349ccsdu2009ccsdu2009Thu, 11 Apr 2019 02:03:00 GMThttp://www.fometaux.com/eryar/archive/2019/04/11/216344.html#216349

ccsdu2009 2019-04-11 10:03 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/04/10/216344.html#216348eryareryarWed, 10 Apr 2019 09:39:00 GMThttp://www.fometaux.com/eryar/archive/2019/04/10/216344.html#216348是的

eryar 2019-04-10 17:39 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/04/10/216344.html#216347ccsdu2009ccsdu2009Wed, 10 Apr 2019 09:37:00 GMThttp://www.fometaux.com/eryar/archive/2019/04/10/216344.html#216347

ccsdu2009 2019-04-10 17:37 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/03/26/187100.html#216314eryareryarTue, 26 Mar 2019 02:42:00 GMThttp://www.fometaux.com/eryar/archive/2019/03/26/187100.html#216314可以按OCC文档上的说明,先更新显卡驱动试试。

eryar 2019-03-26 10:42 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/03/25/187100.html#216313birdsbirdsMon, 25 Mar 2019 07:11:00 GMThttp://www.fometaux.com/eryar/archive/2019/03/25/187100.html#216313您能帮我看下吗,这是什么问题?
Draw[1]> pload ALL
1
Draw[2]> vinit
Driver1/Viewer1/View1
Draw[3]> vglinfo
OpenGL info:
GLvendor: ATI Technologies Inc.
GLdevice: AMD Radeon(TM) R7 350X
GLversion: 4.6.13547 Compatibility Profile Context 25.20.15025.1002
GLSLversion: 4.60
Max texture size: 16384
Max combined texture units: 160
Max MSAA samples: 8
Viewport: 409x409
GPU memory: 4096 MiB
ResolutionRatio: 1


birds 2019-03-25 15:11 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/03/25/187100.html#216312eryareryarMon, 25 Mar 2019 04:01:00 GMThttp://www.fometaux.com/eryar/archive/2019/03/25/187100.html#216312Hello,

有可能是显卡支持的不好。
在Draw Test Harness中输入命令:
vglinfo
看看你的显卡信息。

On desktop, 3D viewer for optimal performance requires graphics processing unit (GPU) supporting OpenGL 3.3 or above. Ray tracing requires OpenGL 4.0+ or OpenGL 3.3+ with GL_ARB_texture_buffer_object_rgb32 extension. Textures within ray tracing will be available only when GL_ARB_bindless_texture extension is provided by driver.
On mobile platforms, OpenGL ES 2.0+ is required for 3D viewer (OpenGL ES 3.1+ is recommended). The ray tracing is not yet available on mobile platforms. Some old hardware might be unable to execute complex GLSL programs (e.g. with high number of light sources, clipping planes).
OCCT 3D Viewer, in general, supports wide range of graphics hardware - from very old to new. Therefore, if you observe some unexpected visual issues - first check for OpenGL driver update (or firmware update in case of mobile platforms); but beware that driver update might also come with new bugs. Don't forget to report these bugs to vendors.

eryar 2019-03-25 12:01 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2019/03/25/187100.html#216310birdsbirdsMon, 25 Mar 2019 03:26:00 GMThttp://www.fometaux.com/eryar/archive/2019/03/25/187100.html#216310我现在使用的是OCC7.2版本的,我试着编译打开MFC的案例,发现里面的贴图功能最后贴出来的图是黑色的(瓶子,地图,厨房被贴的地方都是黑色的),没有效果,不知道是什么原因?是我没配置好,还是OCC这方面功能还不完善?

birds 2019-03-25 11:26 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/12/06/216080.html#216109eryareryarThu, 06 Dec 2018 05:35:00 GMThttp://www.fometaux.com/eryar/archive/2018/12/06/216080.html#216109谢谢。

先做一版看看有没有效果。

有效果后面可以用Python之类的,方便扩展和分工。

eryar 2018-12-06 13:35 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/12/06/216080.html#216108ccsdu2009ccsdu2009Thu, 06 Dec 2018 01:49:00 GMThttp://www.fometaux.com/eryar/archive/2018/12/06/216080.html#216108不过单使用12bet效率实在太低 建议考虑py或者js

ccsdu2009 2018-12-06 09:49 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/09/05/199882.html#215906eryareryarWed, 05 Sep 2018 12:09:00 GMThttp://www.fometaux.com/eryar/archive/2018/09/05/199882.html#215906opencascade开源部分没有这个功能,要么使用他收费的模块,,要么使用其他SDK。

eryar 2018-09-05 20:09 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/09/05/199882.html#215905birdsbirdsWed, 05 Sep 2018 12:00:00 GMThttp://www.fometaux.com/eryar/archive/2018/09/05/199882.html#215905

birds 2018-09-05 20:00 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/08/206371.html#215834eryareryarWed, 08 Aug 2018 02:28:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/08/206371.html#215834是的。

之前版本读STL也慢些。

eryar 2018-08-08 10:28 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/08/206371.html#215833birdsbirdsWed, 08 Aug 2018 01:04:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/08/206371.html#215833TopoDS_Shape aShape;
if (!toCreateCompOfTris)
{
// Read STL file to the triangulation.
Handle(Draw_ProgressIndicator) aProgress = new Draw_ProgressIndicator (theDI, 1);
Handle(Poly_Triangulation) aTriangulation = RWStl::ReadFile (aFilePath.ToCString(), aProgress);

TopoDS_Face aFace;
BRep_Builder aB;
aB.MakeFace (aFace);
aB.UpdateFace (aFace, aTriangulation);
aShape = aFace;
}
是不是最关键的就是这个,RWStl::ReadFile可以直接生成三角网格,然后将每个网格叠加到面上,而之前版本readFile只能生成mesh模型,进而计算点,画网格,特费时间。
谢谢博主

birds 2018-08-08 09:04 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/07/206371.html#215831eryareryarTue, 07 Aug 2018 03:27:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/07/206371.html#215831建议你用最新版本的occ7.3.0. 其中有对于纯网格模型的支持:
0028125: Modeling Algorithms - support of BRep shapes based on tessellated geometry
https://tracker.dev.opencascade.org/view.php?id=28125

如何读取和显示网格模型(STL等),可参考readstl命令:
https://tracker.dev.opencascade.org/view.php?id=29868

http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blob;f=src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx;h=c42e9314c8a77e01065ba75399f1497f41985b27;hb=4c4420dfe9d87335c4f920a4ee409e3d8cfd0203



eryar 2018-08-07 11:27 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215828birdsbirdsMon, 06 Aug 2018 13:51:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215828我用的是7.0版本的occ,那需要怎样可以完美显示stl实体。求教

birds 2018-08-06 21:51 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215827eryareryarMon, 06 Aug 2018 12:41:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215827显示STL不需要用这个类。

看你用的occ哪个版本,最新版本中可以直接显示STL网格。

eryar 2018-08-06 20:41 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215826birdsbirdsMon, 06 Aug 2018 10:13:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215826

birds 2018-08-06 18:13 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215825eryareryarMon, 06 Aug 2018 09:11:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215825Hello,

你是想在occ中显示stl文件?

eryar 2018-08-06 17:11 发表评论
]]>
12bet++博客-eryar-最新评论http://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215824birdsbirdsMon, 06 Aug 2018 08:22:00 GMThttp://www.fometaux.com/eryar/archive/2018/08/06/206371.html#215824我通过MeshVS_Mesh显示生成读取的stl文件,之后又通过MeshVS_ElementalColorPrsBuilder添加颜色面片,但是该怎么将生成的网格模型显示为带有阴影立体状态,而不是纯色调、没有立体感。

birds 2018-08-06 16:22 发表评论
]]>