Skip to content
Snippets Groups Projects
Commit cb7d16a9 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

make clear in docs that node/elemement tags should be > 0 (and not == 0)
parent b6a7c189
No related branches found
No related tags found
No related merge requests found
// $Id: OCCEdge.cpp,v 1.22 2007-09-04 13:47:01 remacle Exp $
// $Id: OCCEdge.cpp,v 1.23 2007-10-08 13:13:23 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -210,22 +210,22 @@ double OCCEdge::curvature(double par) const
Standard_Real Crv;
if (curve.IsNull()){
Geom2dLProp_CLProps2d aCLProps(curve2d, 2, eps);
aCLProps.SetParameter (par);
aCLProps.SetParameter(par);
if(!aCLProps.IsTangentDefined())
Crv =eps;
Crv = eps;
else
Crv = aCLProps.Curvature();
}
else{
BRepAdaptor_Curve brepc(c);
BRepLProp_CLProps prop(brepc, 2, eps);
prop.SetParameter (par);
if (!prop.IsTangentDefined())
prop.SetParameter(par);
if(!prop.IsTangentDefined())
Crv = eps;
else
Crv = prop.Curvature();
}
if (Crv <= eps)Crv = eps;
if(Crv <= eps) Crv = eps;
// std::list<GFace*> ff = faces();
// std::list<GFace *>::iterator it = ff.begin();
......
// $Id: gmshEdge.cpp,v 1.38 2007-09-26 20:51:58 geuzaine Exp $
// $Id: gmshEdge.cpp,v 1.39 2007-10-08 13:13:23 geuzaine Exp $
//
// Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
//
......@@ -124,7 +124,7 @@ int gmshEdge::minimumMeshSegments () const
return (int)(fabs(c->Circle.t1 - c->Circle.t2) *
(double)CTX.mesh.min_circ_points / Pi) - 1;
else
return GEdge::minimumMeshSegments () ;
return GEdge::minimumMeshSegments();
}
int gmshEdge::minimumDrawSegments () const
......
\input texinfo.tex @c -*-texinfo-*-
@c $Id: gmsh.texi,v 1.235 2007-09-10 04:47:10 geuzaine Exp $
@c $Id: gmsh.texi,v 1.236 2007-10-08 13:13:23 geuzaine Exp $
@c
@c Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle
@c
......@@ -2876,9 +2876,10 @@ where
is the number of nodes in the mesh.
@item @var{node-number}
is the number (index) of the @var{n}-th node in the mesh. Note that the
@w{@var{node-number}s} do not have to be given in a consecutive (or even an
ordered) way.
is the number (index) of the @var{n}-th node in the mesh;
@var{node-number} must be a postive (non-zero) integer. Note that the
@w{@var{node-number}s} do not necessarily have to form a dense nor an
ordered sequence.
@item @var{x-coord} @var{y-coord} @var{z-coord}
are the floating point values giving the X, Y and Z coordinates of the
......@@ -2888,9 +2889,10 @@ are the floating point values giving the X, Y and Z coordinates of the
is the number of elements in the mesh.
@item @var{elm-number}
is the number (index) of the @var{n}-th element in the mesh. Note that the
@w{@var{elm-number}s} do not have to be given in a consecutive (or even an
ordered) way.
is the number (index) of the @var{n}-th element in the mesh;
@var{elm-number} must be a postive (non-zero) integer. Note that the
@w{@var{elm-number}s} do not necessarily have to form a dense nor an
ordered sequence.
@item @var{elm-type}
defines the geometrical type of the @var{n}-th element:
......@@ -2948,10 +2950,14 @@ with the edges).
See below for the ordering of the nodes.
@item @var{reg-phys}
is the number of the physical entity to which the element belongs.
is the number of the physical entity to which the element belongs;
@var{reg-phys} must be a postive integer, or zero. If @var{reg-phys} is
equal to zero, the element is considered not to belong to any physical
entity.
@item @var{reg-elem}
is the number of the elementary entity to which the element belongs.
is the number of the elementary entity to which the element belongs;
@var{reg-elem} must be a postive (non-zero) integer.
@item @var{number-of-nodes}
is the number of nodes for the @var{n}-th element. This is redundant, but
......@@ -3016,9 +3022,10 @@ file (currently only @var{data-size} = sizeof(double) is supported).
is the number of nodes in the mesh.
@item @var{node-number}
is the number (index) of the @var{n}-th node in the mesh. Note that the
@w{@var{node-number}s} do not have to be given in a consecutive (or even an
ordered) way.
is the number (index) of the @var{n}-th node in the mesh;
@var{node-number} must be a postive (non-zero) integer. Note that the
@w{@var{node-number}s} do not necessarily have to form a dense nor an
ordered sequence.
@item @var{x-coord} @var{y-coord} @var{z-coord}
are the floating point values giving the X, Y and Z coordinates of the
......@@ -3028,9 +3035,10 @@ are the floating point values giving the X, Y and Z coordinates of the
is the number of elements in the mesh.
@item @var{elm-number}
is the number (index) of the @var{n}-th element in the mesh. Note that the
@w{@var{elm-number}s} do not have to be given in a consecutive (or even an
ordered) way.
is the number (index) of the @var{n}-th element in the mesh;
@var{elm-number} must be a postive (non-zero) integer. Note that the
@w{@var{elm-number}s} do not necessarily have to form a dense nor an
ordered sequence.
@item @var{elm-type}
defines the geometrical type of the @var{n}-th element:
......@@ -3093,11 +3101,12 @@ generates meshes with two tags and reads files with an arbitrary number of
tags: see below.
@item @var{tag}
is an integer tag associated with the @var{n}-th element. By default, the
first tag is the number of the physical entity to which the element belongs;
the second is the number of the elementary geometrical entity to which the
element belongs; the third is the number of a mesh partition to which the
element belongs.
is an integer tag associated with the @var{n}-th element. By default,
the first tag is the number of the physical entity to which the element
belongs; the second is the number of the elementary geometrical entity
to which the element belongs; the third is the number of a mesh
partition to which the element belongs. All tags must be postive
integers, or zero. A zero tag is equivalent to no tag.
@item @var{node-number-list}
is the list of the node numbers of the @var{n}-th element. The ordering of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment