Dmitry Khabi Tue, 02/17/2009 - 12:58 Forums: Other usage issuesIf I move the TopoDS_Edge: TopoDS_Edge aLocatedEdge = aEdge.Moved(aTopLoc_Location); Is the Geom_Curve moved (transformed) too ? Handle_Geom_Curve aCurve = BRep_Tool::Curve(theEdge,aFirst,aLast); Thank you Dmitry Khabi Tue, 02/17/2009 - 12:58 If I move the TopoDS_Edge: TopoDS_Edge aLocatedEdge = aEdge.Moved(aTopLoc_Location); Is the Geom_Curve moved (transformed) too ? Handle_Geom_Curve aCurve = BRep_Tool::Curve(aLocatedEdge ,aFirst,aLast); Thank you Log in to post comments Roman Lygin Tue, 02/17/2009 - 16:09 Dmitry, aLocatedEdge and aEdge will be so called partners. Each TopoDS_Shape::IsPartner() will return true on another. See my post http://opencascade.blogspot.com/2009/02/topology-and-geometry-in-open-ca... and the 2nd diagram in it to understand what will happen. Both will share the same TopoDS_TShape (in this case BRep_TEdge) and orientation. Locations will be different. BRep_Tool::Curve(aLocatedEdge,...) will return a curve which is a *transformed* (using aTopLoc_Location) *copy* compared to BRep_Tool::Curve(aEdge,...). Roman ---opencascade.blogspot.com - blog on Open CASCADE Log in to post comments Dmitry Khabi Wed, 02/18/2009 - 12:55 Thank you, I read every topic in your blog. I hope it become bigger and bigger and deeper and deeper. Log in to post comments
Tue, 02/17/2009 - 12:58
If I move the TopoDS_Edge:
TopoDS_Edge aLocatedEdge = aEdge.Moved(aTopLoc_Location);
Is the Geom_Curve moved (transformed) too ?
Handle_Geom_Curve aCurve = BRep_Tool::Curve(aLocatedEdge ,aFirst,aLast);
Thank you
Tue, 02/17/2009 - 16:09
Dmitry,
aLocatedEdge and aEdge will be so called partners. Each TopoDS_Shape::IsPartner() will return true on another.
See my post http://opencascade.blogspot.com/2009/02/topology-and-geometry-in-open-ca... and the 2nd diagram in it to understand what will happen. Both will share the same TopoDS_TShape (in this case BRep_TEdge) and orientation. Locations will be different.
BRep_Tool::Curve(aLocatedEdge,...) will return a curve which is a *transformed* (using aTopLoc_Location) *copy* compared to BRep_Tool::Curve(aEdge,...).
Roman
---
opencascade.blogspot.com - blog on Open CASCADE
Wed, 02/18/2009 - 12:55
Thank you,
I read every topic in your blog.
I hope it become bigger and bigger and deeper and deeper.