Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

autodesk viewer - Forge MArkups Font Size and Thickness of Freehand

I am trying to draw a Markups in forge Viewer but it's working when loading extension

var extensionOptions = { hideIssuesButton: false, hideFieldIssuesButton: true, };

  // Use the `viewer` reference to call `loadExtension` with the extension name and the extension options:

  viewer["3d"].loadExtension('Autodesk.BIM360.Extension.PushPin', extensionOptions).then(function (extension) 
  {
      PushPinExtensionHandle = extension;
  });

but draw Thickness and Font Size is very small.How to increases the size?

Please find the attachment for reference. enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

here are some properties which u can adjust to set the size and width of your Text

var textgeometry = new Three.TextGeometry(text,
      Object.assign({}, {
        font: fonts,
        bevelEnabled: false,
        curveSegments: 2,
        bevelThickness: 0,
        color: 0xFFA500,
        bevelSize: 0.21,
        height: 3,
        size: 1
      }));

here is the link for reference how u can add Text Geometry TextGeometry


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...