Teigha Blog

Find out what's new and more

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

Creating a DatumTarget in Teigha Mechanical

A brief update about the recent Teigha Mechanical changes

mechanical Example

Using JavaScript with Teigha Publish to Switch Views

Using JavaScript when switching predefined views (View) for OdAnnotation is considered based on the PublishTemplate * examples. The main points of the source code are discussed in this article.

pdf export Example

Teigha Multithreading Low-Level API (Part 3 of 4)

This article is part of a series about the low-level API used for multithreading.

performance Example getting started