Teigha Blog

Find out what's new and more

Using Qt with Teigha

Teigha Viewer is a free application that anyone can use to render .dwg and .dgn files and developers can use to test their custom TX modules. It’s also an example of using Qt to develop with Teigha.

Example getting started

Working with B-Reps

In Teigha you can work with solids and shells using boundary representations, or B-Reps. In different Teigha products, Teigha Drawings (for working with both .dwg and .dgn files), Teigha PRC, and Teigha BIM, there are separate implementations of B-Rep interfaces, but you can work with them using the common class OdBrBrep.

b-rep Example

How to use Markups (Redlines) in Teigha Visualize

Teigha Visualize supports features that help with reviewing and editing your files, in particular, creating and saving markups (redlines).

Visualize getting started Example

Creating a NURBS Curve

With Teigha you can create Non-Uniform Rational Basis Spline (NURBS) curves using the Teigha Ge library and its classes OdGeNurbCurve2d and OdGeNurbCurve3d.

Let’s consider a 3D version of a curve (2D curves have all the same behavior). A NURBS curve is defined by its order, a set of weighted control points, and a knot vector. This data can be set to a curve using a constructor:

rendering Example getting started

Maps for Missing Texture Coordinates in Teigha Visualize

Teigha Visualize has a mapping mechanism to use correct texture settings even when mapping coordinates are not present. In this tutorial, we’ll create a sphere and the texture will be set using mappers.

Let’s see how to create a ball.

Suppose we have a model and a database ID. Let’s get a pointer to the database, add an entity to this model, and append a sphere to it.

Visualize Example

Data Compression in Teigha Revision Control

When developing software, most companies use a version control system such as Git, SVN, etc. Version control makes it possible to distribute work among several people, combine the work, view the specific changes made by an individual, etc. This kind of system is convenient when creating drawings, especially when more than one person works on a single drawing.

compression/decompression Example getting started

Working with Surface Fit Polygon Meshes

A polygon mesh can be of the surface fit type, which defines the polygon mesh using an approximation method to create an object that is more smooth. In Teigha, polygon mesh surface fit is provided by the following function:

rendering Example getting started

Using Teigha Low-Level and High-Level Multithreading APIs Together

This article describes Teigha Kernel Multithreading functionality. This is addition for previous two articles about multithreading. It is describes usage of combination of low-level and high-level API’s. Previous two articles describe usage of high-level and low-level multithreading API’s separately.

performance getting started Example

How to Get Element Parameters in Teigha BIM

This article describes just some of the Teigha BIM features used for obtaining and implementing element parameters.

rvt rfa Example

Overriding Visual Styles of Elements in Teigha BIM

Learn how to override Visual Styles of the elements in Teigha BIM.

rvt rfa rendering Example