DiscussionsIssue archiveDraw Harness and Samples

Archived discussion

WebGL Line width seems not to work.

Draw Harness and SamplesMon, 03/07/2022 - 16:431 reply

Browse this forum
QuestionAuthor

Hi, I'm learning the WebGL Sample.

When I test the sample program,
It looks that the Line width seems not to work. It draws always with 1.0 thickness.

I tested the following.
- aisShape->SetWidth(4.0) : Not Work
- Handle(Prs3d_LineAspect) aspect = new Prs3d_LineAspect(Quantity_NOC_VIOLETRED3, Aspect_TypeOfLine::Aspect_TOL_SOLID, 4.0);
aisShape->Attributes()->SetWireAspect(aspect); : Not Work

How can I set the line width(thickness) in the WebGL sample~?

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

Popular WebGL implementations on Windows platform do not support line width different from 1 pixel.