odgeentity3d::iskindof
odgeentity3d::iskindof
hi,
as per documentation for odgeentity3d::iskindof "returns true if and only if this entity is of type (or is derived from) enttype."
i am trying something like following:
odgeentity3d* geent = new odgeline3d(startpt, endpt);
return geent->iskindof(odge::entityid::klinearent3d);
i expect it to return true, but it returns false.
any alternative suggestions?
thx.
it seems that type() method was forgotten in gelinearent3d.h. also i saw that type() and iskindof() were forgotten too in some other headers we will fix it in the next release.
thank you for report about !
virtual odge::entityid odgelinearent3d::type () const
{ return odge::klinearent3d;};
thx for reply.
few more question. i am using intersectwith function:
circ = odgecircarc3d(center, normal, rad);
line = odgeline3d(startpt, endpt);
return circ.intersectwith(line, numpt, pt1, pt2);
it returns false, expected value is true for my input values. should i be setting any other properties for circle to use intersectwith function correctly?
also, currently intersectwith is implemented for selective entities only. is there any plan to impelement it for more entities? specially for basic entities like: circle-ellipse, ellipse-ellipse, polyline.
thx.
last edited by
sjaiswal@hachisoft.com; 16th september 2005 at 02:58 pmfff">.