コード例 #1
0
ファイル: opennurbs_pointcloud.cpp プロジェクト: jl2/ONView
ON_BOOL32 ON_PointCloud::Transform( 
       const ON_Xform& xform
       )
{
  TransformUserData(xform);
  ON_BOOL32 rc = m_P.Transform(xform);
  if (rc && HasPlane() )
    rc = m_plane.Transform(xform);
  m_bbox.Destroy();
  return rc;
}
コード例 #2
0
ファイル: opennurbs_pointcloud.cpp プロジェクト: jl2/ONView
ON_BOOL32 ON_PointCloud::SwapCoordinates(
      int i, int j        // indices of coords to swap
      )
{
  ON_BOOL32 rc = m_P.SwapCoordinates(i,j);
  if ( rc && HasPlane() ) {
    rc = m_plane.SwapCoordinates(i,j);
  }
  if ( rc && m_bbox.IsValid() ) {
    rc = m_bbox.SwapCoordinates(i,j);
  }
  return rc;
}
コード例 #3
0
ファイル: DBrush.cpp プロジェクト: ChunHungLiu/GtkRadiant
bool DBrush::operator ==(DBrush* other)
{
    list<DPlane *>::const_iterator chkPlane;

    for(chkPlane=faceList.begin(); chkPlane!=faceList.end(); chkPlane++)
    {
        if(!other->HasPlane((*chkPlane)))
            return FALSE;
    }

    for(chkPlane=faceList.begin(); chkPlane!=faceList.end(); chkPlane++)
    {
        if(!HasPlane((*chkPlane)))
            return FALSE;
    }

    return TRUE;
}