THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/07/2008 at 09:31, xxxxxxxx wrote:
Cinema 4D Version: 9.6+
Platform: Windows ; Mac ;
Language(s) : C++ ;
I am in a generator and I want to identify from a multisegment textspline, which segments belong together (so the segments for each seperate letters). How can this be done?
I cannot use MAKEEDITABLE as modeling command as that triggers a refresh from within GetVirtualObjects().
I couldn´t find another way yet to determine. So is there a way to tell me which segments belong together?
On 15/07/2008 at 05:50, xxxxxxxx wrote:
If it helps, it would be enough if I´d know the direction of order of the segments (clockwise or anti-cw).
On 17/07/2008 at 19:47, xxxxxxxx wrote:
I'm relatively new to coffee but I don't think the segments are 'related'. C4D just can determine which segment is enclosed within which and it streatches a surface across them.
Using coffee I think you would have to use the point positions to determine which spline is enclosed by another.
You would have to do something similar to determine the direction of the splines, I think.
On 18/07/2008 at 01:21, xxxxxxxx wrote:
thanks first of all, but I am using C++ (and do so for over 6 years but there should be an easy way to determine the segments relation (a relation is almost always available, be it geometrically or analytically...the relation between 2 segments here for example is the clockwise or c-clockwise order).
I can check against all points, check for their individual direction and check for objects inside, but that´s costly performance wise and not really safe as the "direction" cannot be safely identified (a spline can have directional changes that cannot be expressed by simple directional calculations...at least I don´t know them. well there are of course ways to find out exactly if inside or not, but it´s the last option) and maybe there is a flag set for splines when they are created that stores the point order.
So, the question remains. I also don´t see why it takes so long to answer this question. Either it´s possible by the SDK or not.
On 21/07/2008 at 10:33, xxxxxxxx wrote:
Hello support? Any chance to get an info on this soon?
On 23/07/2008 at 03:33, xxxxxxxx wrote:
Do you still have access to the parametric Text spline primitive? Can't you make a MAKEEDITABLE with a clone of the object in a dummy document? Otherwise I don't see how this would be possible.
On 23/07/2008 at 03:53, xxxxxxxx wrote:
Thanks Matthias! The problem is that the spline input can be arbitrary and is not necessarily a text spline (it was only my worst case scenario, but I guess it´s rather the most optimal case now that you say it)
So I guess this means there is no flag in a normal multisegment spline (or in any spline) that tells me the point order right?
On 23/07/2008 at 06:47, xxxxxxxx wrote:
There is no such flag to tell the point order. This is also a question of definition, what is clockwise from one view could be counter-clockwise from another.
On 23/07/2008 at 06:53, xxxxxxxx wrote:
Sure, that´s a geometrical definition problem, however I thought C4D has a definition (which would be enough for me, it doesn´t have to make sense geometrically, however knowing the relation of point orders in a multisegment spline is already useful by itself to me!). But apparently c4d has no convention here.
Thanks, at least that´s something I can work with.