edge Struct Reference
[N-Manifold Geometry]

#include <nmg.h>

Collaboration diagram for edge:

Collaboration graph
[legend]

Data Fields

long magic
edgeuseeu_p
 Ptr to one use of this edge.
long is_real
 artifact or modeled edge (from tessellator)
long index
 struct # in this model

Detailed Description

E D G E

To find all edgeuses of an edge, use eu_p to get an arbitrary edgeuse, then wander around either eumate_p or radial_p from there.

Only the first vertex of an edge is kept in an edgeuse (eu->vu_p). The other vertex can be found by either eu->eumate_p->vu_p or by BU_LIST_PNEXT_CIRC(edgeuse,eu)->vu_p. Note that the first form gives a vertexuse in the faceuse of *opposite* orientation, while the second form gives a vertexuse in the faceuse of the correct orientation. If going on to the vertex (vu_p->v_p), both forms are identical.

An edge_g_lseg structure represents a line in 3-space. All edges on that line should share the same edge_g.

An edge occupies the range eu->param to eu->eumate_p->param in it's geometry's parameter space. (cnurbs only)

Definition at line 493 of file nmg.h.


Field Documentation

long magic
 

Definition at line 494 of file nmg.h.

Referenced by nmg_edge_collapse(), nmg_isect2d_prep(), nmg_me(), nmg_meonvu(), nmg_model_edge_fuse(), nmg_pr_e(), nmg_unglueedge(), and rt_nmg_ialloc().

struct edgeuse* eu_p
 

Ptr to one use of this edge.

Definition at line 495 of file nmg.h.

Referenced by nmg_break_edge_at_verts(), nmg_class_pt_lu_except(), nmg_edge_collapse(), nmg_eusplit(), nmg_find_ot_same_eu_of_e(), nmg_find_top_face_in_dir(), nmg_je(), nmg_keu(), nmg_me(), nmg_meonvu(), nmg_model_edge_fuse(), nmg_pl_e(), nmg_pr_e(), nmg_unglueedge(), nmg_vedge(), nmg_vlblock_e(), and rt_nmg_idisk().

long is_real
 

artifact or modeled edge (from tessellator)

Definition at line 496 of file nmg.h.

Referenced by nmg_edge_collapse(), nmg_meonvu(), rt_nmg_edisk(), rt_nmg_idisk(), and tesselate_pipe_end().

long index
 

struct # in this model

Definition at line 497 of file nmg.h.

Referenced by nmg_model_edge_fuse(), nmg_pl_e(), and nmg_vlblock_e().


The documentation for this struct was generated from the following file:
Generated on Mon Sep 18 01:25:12 2006 for BRL-CAD by  doxygen 1.4.6