欢迎来到天天文库
浏览记录
ID:35157538
大小:239.59 KB
页数:19页
时间:2019-03-20
《Open_CASCADE_notes_-_Topology_and_Geometry.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、OPENCASCADENOTESABLOGABOUTTHEOPENSOURCE3DMODELINGKERNEL:NOTESFROMITSFORMERDEVELOPERANDPROJECTMANAGERTopologyandGeometryinOpenCASCADE.Part1LetusconsiderthesefundamentalconceptsofOpenCASCADE.Fromtimetotimequestionsaboutthempopupontheforum,soIhopethispostwillbeusefulformanyreaders.Understand
2、ingtheseconceptsisimportantifyouhavetoworkwithmostmodelingalgorithmsandespeciallyifyouwanttodevelopyouown.Youmightalsowanttore-readvariouschaptersfromtheModelingDataUser'sGuidetorefreshyoumemory.AbstracttopologyOpenCASCADEtopologyisdesignedwithreferencetotheSTEPstandardISO-10303-42.Perhap
3、sreadingsomeitsconceptswouldbehelpful(Imyselfdidthisoncein1997).Thestructureisanorientedone-waygraph,whereparentsrefertotheirchildren,andtherearenobackreferences.AbstractstructureisimplementedasC++classesfromtheTopoDSpackage.HereisaninheritancediagramtakenfromtheDoxygen-generateddocumenta
4、tion.TopoDS_Shapeismanipulatedbyvalueandcontains3fields–location,1orientationandamyTShapehandle(oftheTopoDS_TShapetype)–seethediagrambelow(thisandothercontainonlymostimportantfields):myTShapeandLocationareusedtosharedatabetweenvariousshapesandthussavehugeamountsofmemory.Forexample,anedgeb
5、elongingtotwofaceshasequalLocationsandmyTShapefieldsbutdifferentOrientations(ForwardincontextofonefaceandReversedinoneoftheother).ConnectionwithGeometryNowlet'sconsiderhowthisabstracttopologystructureisconnectedwithgeometry.ThisisdonebyinheritingabstracttopologyclassesfromtheTopoDSpackage
6、bythoseimplementingaboundaryrepresentationmodel(fromtheBReppackage).Only3typesoftopologicalobjectshavegeometricrepresentations–vertex,edge,andface(seethediagrambelow).2Let'sconsiderthemmoreclosely.Tobecontinued...TopologyandGeometryinOpenCASCADE.Part2Continued...VertexVertexhasaprimarygeo
7、metricrepresentationwhichisapointin3Dspaceencodedasgp_Pnt.Itmayhaveotherrepresentationsbuttheyarevirtuallyneverusedinpractice.Anotherimportantattributeofavertexisitstolerancewhichindicatespossibleinaccuracyofitsplacement.GeometricalmeaningofthevertextoleranceTisasph
此文档下载收益归作者所有
点击更多查看相关文章~~