Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to use SphereFigureShape
https://www.eclipse.org/forums/index.php/mv/msg/217040/690838/#msg_690838
Originally posted by:
Hi all,
are there any SphereFigureShape examples?
I've tried to use it in ShapeFigure3D, but it seems like it can't be
rendered properly. See attached screenshot.
Am I doing something wrong?
Here is my code.
public class FeatureFigure3D extends ShapeFigure3D {
....
Best regards,
Dennis.]]>2011-06-30T09:53:03-00:00Re: How to use SphereFigureShape
https://www.eclipse.org/forums/index.php/mv/msg/217040/691094/#msg_691094
Originally posted by:
I found a solution:
in org.eclipse.draw3d.shapes.SphereShape
adding pos.setLocation3D(new Vector3fImpl(1f, 0f, 0f));
to static ROTATE_Z90 initialization does the trick.
Am 30.06.11 11:53, schrieb Dennis Hübner:
> Hi all,
> are there any SphereFigureShape examples?
> I've tried to use it in ShapeFigure3D, but it seems like it can't be
> rendered properly. See attached screenshot.
> Am I doing something wrong?
>
> Here is my code.
> public class FeatureFigure3D extends ShapeFigure3D {
> ...
>
> @Override
> protected Shape createShape() {
> SphereFigureShape sphereFigureShape = new SphereFigureShape(this, 3);
> sphereFigureShape.setFill(true);
> setAlpha(0xBB);
> ´ return sphereFigureShape;
> }
> ...
> }
>
> Best regards,
> Dennis.]]>2011-06-30T17:26:44-00:00Re: How to use SphereFigureShape
https://www.eclipse.org/forums/index.php/mv/msg/217040/726680/#msg_726680
sorry for the delay... yes, the SphereShape is buggy, and we have an
open bug ofor that issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=290578
We are in the process of moving to git, once we have finished that, I
will try to add your patch.
Thank your for the help,
Cheers,
Jens
On 30.06.11 19:26, Dennis Hübner wrote:
> I found a solution:
> in org.eclipse.draw3d.shapes.SphereShape
> adding pos.setLocation3D(new Vector3fImpl(1f, 0f, 0f));
> to static ROTATE_Z90 initialization does the trick.
>
> static {
> Position3DImpl pos = new Position3DImpl();
> pos.setSize3D(new Vector3fImpl(1, 1, 1));
> pos.setLocation3D(new Vector3fImpl(1f, 0f, 0f));
> pos.setRotation3D(new Vector3fImpl(0, 0, (float) Math.PI / 2));
> ROTATE_Z90 = pos;
> }
>
>
> Regards,
> Dennis.
>]]>Jens von Pilgrim2011-09-19T09:09:01-00:00Re: How to use SphereFigureShape
https://www.eclipse.org/forums/index.php/mv/msg/217040/726853/#msg_726853
Originally posted by:
Am 19.09.11 11:09, schrieb Jens v.P.:
> Dear Dennis,
>
> sorry for the delay... yes, the SphereShape is buggy, and we have an
> open bug ofor that issue:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=290578
>
> We are in the process of moving to git, once we have finished that, I
> will try to add your patch.
Sounds cool ...
>
> Thank your for the help,
>
> Cheers,
> Jens
>
> On 30.06.11 19:26, Dennis Hübner wrote:
>> I found a solution:
>> in org.eclipse.draw3d.shapes.SphereShape
>> adding pos.setLocation3D(new Vector3fImpl(1f, 0f, 0f));
>> to static ROTATE_Z90 initialization does the trick.
>>
>> static {
>> Position3DImpl pos = new Position3DImpl();
>> pos.setSize3D(new Vector3fImpl(1, 1, 1));
>> pos.setLocation3D(new Vector3fImpl(1f, 0f, 0f));
>> pos.setRotation3D(new Vector3fImpl(0, 0, (float) Math.PI / 2));
>> ROTATE_Z90 = pos;
>> }
>>
>>
>> Regards,
>> Dennis.
>>]]>2011-09-19T17:38:39-00:00