MantisBT - Community
View Issue Details
0030971Community[OCCT] OCCT:Visualizationpublic2019-09-17 10:112019-09-17 13:03
Vico Liang 
kgv 
normalfeature 
newopen 
 
[OCCT] Unscheduled 
0030971: Visualization - can Font_BRepFont generate composite curve to C1 rather than to C0?
void Font_BRepFont::SetCompositeCurveMode (const Standard_Boolean theToConcatenate);

Above method will generate composite curve to C0 if set the flag to true, it's no a good practice. In real application, C1 is more preferable than C0. Another reason is that C1 will good for later modeling algorithm base on font, such as extrusion, revolution, etc. C0 will fail the modeling algorithm in most cases.
No tags attached.
child of 0024181closed bugmaster Open CASCADE Text to BRep functionality 
Issue History
2019-09-17 10:11Vico LiangNew Issue
2019-09-17 10:11Vico LiangAssigned To => kgv
2019-09-17 11:10kgvNote Added: 0087191
2019-09-17 11:10kgvSeverityminor => feature
2019-09-17 11:10kgvTarget Version7.5.0 => Unscheduled
2019-09-17 11:10kgvSummaryCan Font_BRepFont generate composite curve to C1 rather than to C0? => Visualization - can Font_BRepFont generate composite curve to C1 rather than to C0?
2019-09-17 11:11kgvNote Edited: 0087191bug_revision_view_page.php?bugnote_id=87191#r21837
2019-09-17 11:11kgvRelationship addedchild of 0024181
2019-09-17 13:03Vico LiangNote Added: 0087198

Notes
(0087191)
kgv   
2019-09-17 11:10   
(edited on: 2019-09-17 11:11)
This flag within Font_BRepFont is an attempt to reduce geometric definition of the glyph shape.

Currently, it combines ALL curves within a glyph contour, therefore there is no reason to expect better continuity than C0.

It could be possible detecting smoothly connected segments within glyph curve and merge only them, but I have no idea if this actually happens in practice.

Patches are welcome.

(0087198)
Vico Liang   
2019-09-17 13:03   
It's possible to split the composite spline curve at C0 point. This changes should not be hard.